You could collapse the body of this `foreach` down to:

````csharp
model.roleUsers.Add(user.UserName, new RoleUserModel() { IsMember = Roles.IsUserInRole(user.UserName, id), UserId = user.UserId, Username = user.UserName });
````