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