public IActionResult InsertImpianto() { var model = new InsertImpiantoViewModel(); model.clientidaiqualiscegliere = _data.GetClients(); model.regionidallequaliscegliere = _data.GetRegions(); return(PartialView(model)); }
public IActionResult Index() { var model = new ViewModelClient(); model.Customers = _data.GetClients(); return(View(model)); }
public IActionResult AddUser() { UserViewModel model = new UserViewModel(); model.ApplicationRoles = roleManager.Roles.Select(r => new SelectListItem { Text = r.Name, Value = r.Id }).ToList(); model.ClientList = _data.GetClients(); return(PartialView("_AddUser", model)); }