public void AddManager(T manager) { if (!Managers.Contains(manager)) { Managers.Add(manager); } if (!ManagerCollection.Contains(manager.Id)) { ManagerCollection.Add(manager.Id); } }
public bool IsManager(string username) { return(Managers != null && Managers.Contains(username)); }
public bool IsManager(UserId userId) { return(Managers.Contains(userId)); }