public ActionResult UserChangePassword() { userchangepasswordmodel objmodel = new userchangepasswordmodel(); ManageUserMaster manageuser = new ManageUserMaster(); usermaster usermst = manageuser.GetUserbyId(ProjectSession.UserId, ProjectSession.custid); objmodel = new userchangepasswordmodel(usermst); return(View(objmodel)); }
public ActionResult formusermaster(string id = "") { usermastermodel objmodel = new usermastermodel(); ManageUserMaster manageuser = new ManageUserMaster(); if (id != "") { usermaster usermst = manageuser.GetUserbyId(id, ProjectSession.custid); objmodel = new usermastermodel(usermst); objmodel.addrightsview = false; objmodel.editrightsview = false; objmodel.deleterightsview = false; objmodel.downloadrightsview = false; objmodel.uploadrightsview = false; objmodel.sendmailrightsview = false; if (objmodel.addrights == true) { objmodel.addrightsview = true; } if (objmodel.editrights == true) { objmodel.editrightsview = true; } if (objmodel.deleterights == true) { objmodel.deleterightsview = true; } if (objmodel.downloadrights == true) { objmodel.downloadrightsview = true; } if (objmodel.uploadrights == true) { objmodel.uploadrightsview = true; } if (objmodel.sendmailrights == true) { objmodel.sendmailrightsview = true; } } return(View(objmodel)); }