Item ConvertViewModelToItem(ItemViewModel vm) { return(CommonHelpers.ConvertModelToViewModel <Item>(vm)); }
Ingredient ConvertViewModelToIngredient(IngredientViewModel vm) { var ing = CommonHelpers.ConvertModelToViewModel <Ingredient>(vm); return(ing); }
ItemViewModel ConvertItemToViewModel(Item item) { return(CommonHelpers.ConvertModelToViewModel <ItemViewModel>(item)); }
IngredientViewModel ConvertIngredientToViewModel(Ingredient ingredient) { var vm = CommonHelpers.ConvertModelToViewModel <IngredientViewModel>(ingredient); return(vm); }