Ejemplo n.º 1
0
        public IActionResult PutRecipeType(TypeViewModel viewModel)
        {
            var type = mapper.Map <RecipeType>(viewModel);

            recipeTypeRepository.Update(type);
            return(RedirectToAction(nameof(GetRecipeType), new { id = type.Id }));
        }
Ejemplo n.º 2
0
 public void UpdateIngredient(Ingredient ingredient)
 {
     repository.Update(ingredient);
 }
Ejemplo n.º 3
0
 public void UpdateRecipe(Recipe recipe)
 {
     repository.Update(recipe);
 }