public void RemoveRole(Role role) { if (Roles == null) return; if (Roles.Contains(role)) Roles.Remove(role); }
public void SetRole(Role role) { if (Roles == null) Roles = new List<Role>(); Roles.Clear(); Roles.Add(role); }
public void AddRole(Role role) { if (Roles == null) Roles = new List<Role>(); Roles.Add(role); }