Exemplo n.º 1
0
 public HttpResponseMessage GetDailyPOLLogByDate(int UserId, string Type, DateTime FromDate, DateTime ToDate)
 {
     try
     {
         using (CarSystemEntities db = new CarSystemEntities())
         {
             var returnData = db.prGetDailyPOLLog(UserId, FromDate, ToDate, 0, Type).ToList();
             return(Request.CreateResponse(HttpStatusCode.OK, returnData));
         }
     }
     catch (Exception ex)
     {
         return(Request.CreateResponse(HttpStatusCode.BadRequest, "System has failed to show list. Please contact with admin."));
     }
 }