예제 #1
0
 public void BanOrUnban(User user)
 {
     if (user.IsBanned == true)
     {
         user.IsBanned = Banned.unbanUser();
     }
     else
     {
         user.IsBanned = Banned.banUser();
     }
     db.SaveChanges();
 }