public IHttpActionResult DishesPerCat(int id) { try { using (var db = new RestaurantContext()) { return(Ok(db.sp_tot_dishes_per_cat(id).ToList())); } } catch (Exception ex) { return(Content(HttpStatusCode.Conflict, ex.Message)); } }
public IHttpActionResult DishesPerCat(int id) { try { using (var db = new RestaurantContext()) { return(Ok(db.sp_tot_dishes_per_cat(id).ToList())); } } catch (Exception ex) { return(Content(HttpStatusCode.Conflict, ex.Message)); } }