public PartialViewResult InsertUsersModal() { var oModel = new Models.MainModels.UserModel(); var isNotSuper = User.UserTypeId != 1; var getLstType = DAL.Account.UserType.GetUserType(new UserType()); if (getLstType.HasResult) { oModel.LstUserTypes = getLstType.Results; } return(PartialView("UserParts/_UserInsertModal", oModel)); }
public ActionResult Users() { var oModel = new Models.MainModels.UserModel(); var isNotSuper = User.UserTypeId != 1; var getLstType = DAL.Account.UserType.GetUserType(new UserType()); if (getLstType.HasResult) { oModel.LstUserTypes = getLstType.Results; } return(View(oModel)); }