public IActionResult EditIngredient(int ingredientId) { try { var model = _repository.GetIngredient(ingredientId); return(View(model)); } catch (Exception ex) { return(View("Error", ex)); } }
public IActionResult EditIngredient(int ingredientId) { try { var model = _repository.GetIngredient(ingredientId); return(View(model)); } catch (Exception ex) { return(View("Error", ex)); } }