public IActionResult Edit(long id) { var userRoles = roleService.GetUserRoles(id).ToList(); var model = new EditViewModel { UserRoles = userRoles, Roles = roleService.GetRoles().Where(x => !userRoles.Contains(x)).ToList(), Id = id, Sectors = sectorService.GetSectorNames().ToList() }; return(View(model)); }