public ActionResult EditPaySlipMapping(int Id) { try { SessLogObj = (LoginSessionDetails)HttpContext.Session["SessionInformation"]; DataModel.Master.EmployeePaySlipMapping obj = new DataModel.Master.EmployeePaySlipMapping(); List <DataModel.Master.EmployeePaySlipMapping> modelList = obj.getEmployeePaySlipMapping(Id, 0, Convert.ToInt32(SessLogObj.USERID)); return(PartialView((modelList != null && modelList.Count > 0) ? modelList.FirstOrDefault() : null)); } catch (Exception ex) { throw; } }
// GET: PaySlipEmpMap public ActionResult PaySlipEmpMapIndex(int Id) { try { SessLogObj = (LoginSessionDetails)HttpContext.Session["SessionInformation"]; DataModel.Master.EmployeePaySlipMapping obj = new DataModel.Master.EmployeePaySlipMapping(); List <DataModel.Master.EmployeePaySlipMapping> objList = obj.getEmployeePaySlipMapping(0, Id, Convert.ToInt32(SessLogObj.USERID)); ViewBag.EMPID = Id; return(View(objList)); } catch (Exception ex) { throw ex; } }