Пример #1
0
 public void DeleteAdminUser(AdminUser adminUser)
 {
     if (adminUser.UserName == "admin")
     {
         throw new Exception("This account is admin of system, you can not delete");
     }
     else
     {
         _adminUserDal.DeleteAdminUser(adminUser);
     }
 }