Beispiel #1
0
 public ActionResult AddOrUpdateRecipe([FromBody] IngredientViewModel ingredient)
 {
     _ingredientsRepository.InsertIngredient(_mapper.Map <Ingredient>(ingredient));
     _ingredientsRepository.Save();
     return(Ok(new { status = "Ok" }));
 }