public JsonResult ReadIngredientById(int ingredientID) { if (ingredientID <= 0) { return(Json(new { errors = "Ingredient ID is <= 0" })); } return(Json(_dbService.ReadElementById(ingredientID))); }
public JsonResult ReadRecipeById(int recipeID) { if (recipeID <= 0) { return(Json(new { errors = "Recipe ID is <= 0" })); } return(Json(_dbService.ReadElementById(recipeID))); }