Пример #1
0
 Item ConvertViewModelToItem(ItemViewModel vm)
 {
     return(CommonHelpers.ConvertModelToViewModel <Item>(vm));
 }
        Ingredient ConvertViewModelToIngredient(IngredientViewModel vm)
        {
            var ing = CommonHelpers.ConvertModelToViewModel <Ingredient>(vm);

            return(ing);
        }
Пример #3
0
 ItemViewModel ConvertItemToViewModel(Item item)
 {
     return(CommonHelpers.ConvertModelToViewModel <ItemViewModel>(item));
 }
        IngredientViewModel ConvertIngredientToViewModel(Ingredient ingredient)
        {
            var vm = CommonHelpers.ConvertModelToViewModel <IngredientViewModel>(ingredient);

            return(vm);
        }