I\'m really struggling to wrap my head around this:
I have a UserModel and a UserRoleModel:
public class UserModel { [Required] [Display(Name
As Rob mentioned in the previous answer all the Selected properties will be False. I used this piece of code to cover that.
AllRoles = Roles.GetAllRoles().Select(r => new RoleViewModel() { Name = r, Selected = Roles.GetRolesForUser(uvm.UserProfile.UserName).Contains(r) ? true : false });