示例#1
0
 public IActionResult GetAll()
 {
     try
     {
         RecipeIngredientCore recipeIngredientCore = new RecipeIngredientCore(dbContext);
         return(Ok(recipeIngredientCore.GetAll()));
     }
     catch (Exception ex)
     {
         return(StatusCode((int)HttpStatusCode.InternalServerError, ex));
     }
 }