private ManageRolesViewModel GenerateManageRolesViewModel(string id) { if (string.IsNullOrWhiteSpace(id)) { return(null); } ApplicationUser foundUser = UserRepository.GetUserById(id); if (foundUser == null) { return(null); } string currentAdminUserId = User.Identity.GetUserId(); ManageRolesViewModel model = ManageRolesViewModel.CreateNewViewModel(currentAdminUserId, foundUser, UserRoleRepository.GetAllUserRoles(), DbContext); return(model); }