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