public HttpResponseMessage GetPaySlipListOnDemand(int UserId, int PaySlipId, string BookNo, string Type)
        {
            try

            {
                using (CarSystemEntities db = new CarSystemEntities())
                {
                    var returnData = db.prGetPaySlipDetails(UserId, PaySlipId, BookNo, Type).ToList();
                    return(Request.CreateResponse(HttpStatusCode.OK, returnData));
                }
            }
            catch (Exception ex)
            {
                return(Request.CreateResponse(HttpStatusCode.BadRequest, "System has failed to show pay slip list. Please contact with admin."));
            }
        }
        public HttpResponseMessage GetPayslip(int UserId, int Id)
        {
            try

            {
                using (CarSystemEntities db = new CarSystemEntities())
                {
                    var returnData = db.prGetPaySlipDetails(UserId, Id, "", "Single").ToList();
                    return(Request.CreateResponse(HttpStatusCode.OK, returnData));
                }
            }
            catch (Exception ex)
            {
                return(Request.CreateResponse(HttpStatusCode.BadRequest, "System has failed to show pay slip details. Please contact with admin."));
            }
        }