public static Option ToServiceModel(this OptionBindingModel model)
        {
            var optionModel = new Option
            {
                Id         = model.Id,
                Text       = model.Text,
                QuestionId = model.QuestionId,
            };

            return(optionModel);
        }
Exemplo n.º 2
0
        public static OptionBindingModel ToViewModel(this Option model)
        {
            var optionModel = new OptionBindingModel
            {
                Id         = model.Id,
                Text       = model.Text,
                QuestionId = model.QuestionId,
            };

            return(optionModel);
        }