public JsonResult Mat_PatLeaveRequest()
        {
            //Creating List
            List <Mat_PatLeave> ObjEmp = new List <Mat_PatLeave>();
            var data = _TimeSheetApprovalMethod.getMat_PatLeave();

            if (data.Count > 0)
            {
                foreach (var details in data)
                {
                    Mat_PatLeave datamodel = new Mat_PatLeave();
                    //datamodel.Id = details.id;
                    // datamodel.Days =Convert.ToDecimal(details.);

                    datamodel.DueDate = Convert.ToDateTime(details.DueDate);
                    //Commented for yagnik
                    datamodel.Link = details.Link;

                    ObjEmp.Add(datamodel);
                }
            }
            //return list as Json
            return(Json(ObjEmp, JsonRequestBehavior.AllowGet));
        }
        public ActionResult Mat_PatApprove(int EmpID)
        {
            //Creating List
            List <Mat_PatLeave> ObjEmp = new List <Mat_PatLeave>();
            var data          = _TimeSheetApprovalMethod.getAllMat_PatList(EmpID);
            int employmentDay = _TimeSheetApprovalMethod.getTotalWorkingDaysOfEmployee(EmpID);

            if (data.Count > 0)
            {
                foreach (var details in data)
                {
                    Mat_PatLeave datamodel = new Mat_PatLeave();
                    datamodel.Id                       = details.Id;
                    datamodel.EmployeeId               = details.EmployeeId;
                    datamodel.Name                     = details.Name;
                    TempData["MatPatWName"]            = details.Name;
                    TempData["MatPatWId"]              = details.EmployeeId;
                    TempData["MatLengthOfEmployement"] = employmentDay;
                    datamodel.FileName                 = details.FileName;
                    ObjEmp.Add(datamodel);
                }
            }
            return(PartialView("_partialMatPatApproval", ObjEmp));
        }