Exemplo n.º 1
0
        public PeriodViewModel(PeriodBindingModel periodBinging, int?periodId)
        {
            Period   = periodBinging;
            PeriodId = periodId;

            PeriodNumber number = PeriodNumbersHelper.ConvertStringToPeriodNumber(Period.Number);
            PeriodOption option = PeriodOptionsHelper.ConvertStringToPeriodOption(Period.Option);

            NumbersList = PeriodNumbersHelper.GetPeriodNumbersList(number);
            OptionsList = PeriodOptionsHelper.GetPeriodOptionsList(option);
        }
Exemplo n.º 2
0
 public PeriodNumber Convert(string source, PeriodNumber destination, ResolutionContext context)
 {
     return(PeriodNumbersHelper.ConvertStringToPeriodNumber(source));
 }