public ActionResult Edit(string userId) { var editUserViewModel = new CreateEditUserViewModel(); editUserViewModel.UserDetails = _userModel.GetDetails(userId); editUserViewModel.AllowedRoles = _userModel.GetAllRoles().ToList(); return(View(editUserViewModel)); }