Exemplo n.º 1
0
        public HttpResponseMessage GetDailyCarLogReport(int UserId, DateTime date)
        {
            try

            {
                using (CarSystemEntities db = new CarSystemEntities())
                {
                    var returnresult = db.prGetDailyCarLogReport(UserId, date).ToList();;
                    return(Request.CreateResponse(HttpStatusCode.OK, returnresult));
                }
            }
            catch (Exception ex)
            {
                return(Request.CreateResponse(HttpStatusCode.BadRequest, "System has failed to delete root cost information. Please try agian."));
            }
        }