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; } }
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; } }
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; } }