Exemple #1
0
 public void AddAdmin(Admin admin, bool update = false)
 {
     if (!update && dal.GetAdmins().Any(A => A.Equals(admin)))
     {
         throw new InvalidOperationException("An Admin with that ID already exists");
     }
     dal.AddAdmin(admin);
 }