コード例 #1
0
 public ActionResult AddUser(DataModel.userMaster obj)
 {
     try
     {
         SessLogObj = (LoginSessionDetails)HttpContext.Session["SessionInformation"];
         objRes     = obj.Save(obj, Convert.ToInt32(SessLogObj.USERID));
         return(Json(objRes, JsonRequestBehavior.AllowGet));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
コード例 #2
0
 public ActionResult EditUser(int Id)
 {
     try
     {
         SessLogObj = (LoginSessionDetails)HttpContext.Session["SessionInformation"];
         DataModel.userMaster        obj       = new DataModel.userMaster();
         List <DataModel.userMaster> modelList = obj.getUserList(Id, "", "");
         return(PartialView((modelList != null && modelList.Count > 0) ? modelList.FirstOrDefault() : null));
     }
     catch (Exception ex)
     {
         throw;
     }
 }
コード例 #3
0
 public ActionResult UserIndex()
 {
     try
     {
         SessLogObj = (LoginSessionDetails)HttpContext.Session["SessionInformation"];
         DataModel.userMaster        obj     = new DataModel.userMaster();
         List <DataModel.userMaster> objList = obj.getLKUserList(Convert.ToInt32(SessLogObj.USERID));
         return(View(objList));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }