Example #1
0
 public void DeleteAccountTeam(AccountTeam accountTeam)
 {
     if (accountTeam == null)
     {
         throw new ArgumentNullException(nameof(accountTeam));
     }
     _context.AccountTeam.Remove(accountTeam);
     _context.SaveChanges();
 }
Example #2
0
        public void CreateAccountTeam(AccountTeam accountTeam)
        {
            if (accountTeam == null)
            {
                throw new ArgumentNullException(nameof(accountTeam));
            }

            _context.AccountTeam.Add(accountTeam);
        }