internal void RemoveRole(S4IdentityRole role) { if (role == null) { throw new ArgumentNullException(nameof(role)); } s4roles = _roles.Where(r => !r.Equals(role)).ToList(); }
internal void AddRole(S4IdentityRole role) { if (role == null) { throw new ArgumentNullException(nameof(role)); } var has_role = _roles.Any(r => r.Equals(role)); if (!has_role) { _roles.Add(role); } }
public bool Equals(S4IdentityRole other) { return(s4_role_name == other.s4_role_name); }