public HttpResponseMessage GetDailyPaymentReportSection(int UserId, DateTime SelectedDate, int CarTypeId, string Type) { try { using (CarSystemEntities db = new CarSystemEntities()) { var returnresult = db.prGetDailyPaymentReportSection(UserId, SelectedDate, CarTypeId, Type).ToList();; return(Request.CreateResponse(HttpStatusCode.OK, returnresult)); } } catch (Exception ex) { return(Request.CreateResponse(HttpStatusCode.BadRequest, "System has failed to show information. Please try agian.")); } }