Adapted ResultController to use of PeriodCode key instead of Id