Exemple #1
0
 public ActionResult EditPaySlipHead(int Id)
 {
     try
     {
         SessLogObj = (LoginSessionDetails)HttpContext.Session["SessionInformation"];
         DataModel.Master.PaySlipHead        obj       = new DataModel.Master.PaySlipHead();
         List <DataModel.Master.PaySlipHead> modelList = obj.getPaySlipHead(Id, "", "", Convert.ToInt32(SessLogObj.objComp.COMPID), 0, Convert.ToInt32(SessLogObj.USERID));
         return(PartialView((modelList != null && modelList.Count > 0) ? modelList.FirstOrDefault() : null));
     }
     catch (Exception ex)
     {
         throw;
     }
 }
Exemple #2
0
 public ActionResult Index()
 {
     try
     {
         SessLogObj = (LoginSessionDetails)HttpContext.Session["SessionInformation"];
         DataModel.Master.PaySlipHead        obj     = new DataModel.Master.PaySlipHead();
         List <DataModel.Master.PaySlipHead> objList = obj.getPaySlipHead(0, "", "", Convert.ToInt32(SessLogObj.objComp.COMPID), 0, Convert.ToInt32(SessLogObj.USERID));
         return(View(objList));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }