public IActionResult PostRecipeType(TypeViewModel viewModel) { var type = mapper.Map <RecipeType>(viewModel); recipeTypeRepository.Create(type); return(RedirectToAction(nameof(GetRecipeTypes))); }
public void CreateNewIngredient(Ingredient ingredient) { repository.Create(ingredient); }
public void CreateNewRecipe(Recipe recipe) { repository.Create(recipe); }