Пример #1
0
 public void AddManager(T manager)
 {
     if (!Managers.Contains(manager))
     {
         Managers.Add(manager);
     }
     if (!ManagerCollection.Contains(manager.Id))
     {
         ManagerCollection.Add(manager.Id);
     }
 }
Пример #2
0
 public bool IsManager(string username)
 {
     return(Managers != null && Managers.Contains(username));
 }
Пример #3
0
 public bool IsManager(UserId userId)
 {
     return(Managers.Contains(userId));
 }