public async Task <IActionResult> CreateProfile() { var model = new AuthorizationManagementViewModel() { RoleList = new List <AutherizationMangementProfileViewModel>(), AccessList = new List <AutherizationMangementProfileViewModel>() }; var role1 = new AutherizationMangementProfileViewModel() { Name = "PowerShell - HG" }; var role2 = new AutherizationMangementProfileViewModel() { Name = "PowerShell - HG" }; var role3 = new AutherizationMangementProfileViewModel() { Name = "PowerShell - HG" }; var access1 = new AutherizationMangementProfileViewModel() { Name = "Create_User - HG" }; var access2 = new AutherizationMangementProfileViewModel() { Name = "Create_User - HG" }; var access3 = new AutherizationMangementProfileViewModel() { Name = "Create_User - HG" }; model.AccessList.Add(access1); model.AccessList.Add(access2); model.AccessList.Add(access3); model.RoleList.Add(role1); model.RoleList.Add(role2); model.RoleList.Add(role3); var data = new List <Common.ViewModels.Company.CreateCompanyBuildingViewModel>(); var d1 = new Common.ViewModels.Company.CreateCompanyBuildingViewModel() { Name = "sdffsd", ContactEmail = "*****@*****.**" }; var d2 = new Common.ViewModels.Company.CreateCompanyBuildingViewModel() { Name = "fsdd", ContactEmail = "*****@*****.**" }; data.Add(d1); data.Add(d2); model.SelectList1 = new Microsoft.AspNetCore.Mvc.Rendering.SelectList(data, "Name", "ContactEmail"); return(View(model)); }
public async Task <IActionResult> Index() { var model = new AuthorizationManagementViewModel() { ProfileList = new List <AutherizationMangementProfileViewModel>(), RoleList = new List <AutherizationMangementProfileViewModel>(), AccessList = new List <AutherizationMangementProfileViewModel>() }; var profile1 = new AutherizationMangementProfileViewModel() { Name = "Management - HG" }; var profile2 = new AutherizationMangementProfileViewModel() { Name = "Management - HG" }; var profile3 = new AutherizationMangementProfileViewModel() { Name = "Management - HG" }; var role1 = new AutherizationMangementProfileViewModel() { Name = "PowerShell - HG" }; var role2 = new AutherizationMangementProfileViewModel() { Name = "PowerShell - HG" }; var role3 = new AutherizationMangementProfileViewModel() { Name = "PowerShell - HG" }; var access1 = new AutherizationMangementProfileViewModel() { Name = "Create_User - HG" }; var access2 = new AutherizationMangementProfileViewModel() { Name = "Create_User - HG" }; var access3 = new AutherizationMangementProfileViewModel() { Name = "Create_User - HG" }; model.AccessList.Add(access1); model.AccessList.Add(access2); model.AccessList.Add(access3); model.ProfileList.Add(profile1); model.ProfileList.Add(profile2); model.ProfileList.Add(profile3); model.RoleList.Add(role1); model.RoleList.Add(role2); model.RoleList.Add(role3); return(View(model)); }
public async Task <IActionResult> AddEntrance() { var model = new AuthorizationManagementViewModel() { }; var datax = new List <Common.ViewModels.Company.CreateCompanyBuildingViewModel>(); var data = new List <string>(); var d1 = "Create_port"; data.Add(d1); model.SelectList1 = new Microsoft.AspNetCore.Mvc.Rendering.SelectList(data, "Name"); return(PartialView("_AddEntrance", model)); }
public async Task <IActionResult> AddRole() { var model = new AuthorizationManagementViewModel() { }; var datax = new List <Common.ViewModels.Company.CreateCompanyBuildingViewModel>(); var data = new List <string>(); var d1 = "PwerShellUser"; var d2 = "Admin"; var d3 = "Manager"; data.Add(d1); data.Add(d2); data.Add(d3); model.SelectList1 = new Microsoft.AspNetCore.Mvc.Rendering.SelectList(data, "Name"); return(PartialView("_AddRole", model)); }
public async Task <IActionResult> CreateRole() { var model = new AuthorizationManagementViewModel() { AccessList = new List <AutherizationMangementProfileViewModel>() }; var access1 = new AutherizationMangementProfileViewModel() { Name = "Create_User - HG" }; var access2 = new AutherizationMangementProfileViewModel() { Name = "Create_User - HG" }; var access3 = new AutherizationMangementProfileViewModel() { Name = "Create_User - HG" }; model.AccessList.Add(access1); model.AccessList.Add(access2); model.AccessList.Add(access3); return(View(model)); }