public ActionResult Analysis([DataSourceRequest] DataSourceRequest request, Att_OvertimeAnalysisModel model)
 {
     var service = new RestServiceClient<IEnumerable<Att_OvertimeModel>>(UserLogin);
     service.SetCookies(this.Request.Cookies, _Hrm_Hre_Service);
     var result = service.Post(_Hrm_Hre_Service, "api/Att_Overtime/", model);
     return Json(result.ToDataSourceResult(request), JsonRequestBehavior.AllowGet);
 }
        public ActionResult AnalysisProfile(string ProfileID, string ProfileName)
        {
            var service = new RestServiceClient<IEnumerable<CatOvertimeTypeMultiModel>>(UserLogin);
            service.SetCookies(Request.Cookies, _Hrm_Hre_Service);
            var result = service.Get(_Hrm_Hre_Service, "api/CatOvertimeType/");
            ViewData["Cat_OvertimeType"] = result;

            var service1 = new RestServiceClient<IEnumerable<Sys_UserMultiModel>>(UserLogin);
            service1.SetCookies(Request.Cookies, _Hrm_Hre_Service);
            var result1 = service1.Get(_hrm_Sys_Service, "api/Sys_User/");
            ViewData["Sys_User"] = result1;

            Att_OvertimeAnalysisModel model = new Att_OvertimeAnalysisModel();
            model.ProfileID = ProfileID;
            model.ProfileName = ProfileName;
            return View(model);          
        }