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); }
public string Convert(PeriodOption source, string destination, ResolutionContext context) { return(PeriodOptionsHelper.ConvertPeriodOptionToString(source)); }
public PeriodOption Convert(string source, PeriodOption destination, ResolutionContext context) { return(PeriodOptionsHelper.ConvertStringToPeriodOption(source)); }