public HttpResponseMessage GetJobList(int UserId, DateTime FromDate, DateTime ToDate, int JobId = 0, string Type = "All")
        {
            try

            {
                using (CarSystemEntities db = new CarSystemEntities())
                {
                    // var returnData = db.prGetVendorDetails(UserId, 0, "All").ToList();
                    var returnData = db.prGetJobList(UserId, FromDate, ToDate, JobId, Type).ToList();
                    return(Request.CreateResponse(HttpStatusCode.OK, returnData));
                }
            }
            catch (Exception ex)
            {
                return(Request.CreateResponse(HttpStatusCode.BadRequest, "System has failed to show information. Please contact with admin."));
            }
        }