Esempio n. 1
0
        public ActionResult DeleteTeam(int id)
        {
            var team = _repository.GetTeamById(id);

            if (team == null)
            {
                return(NotFound());
            }

            _repository.DeleteTeam(team);
            _repository.SaveChanges();

            return(NoContent());
        }
Esempio n. 2
0
        public async Task <string> DeleteTeam(Guid teamId)
        {
            await _repo.DeleteTeam(teamId);

            return($"{teamId} has been deleted!");
        }
Esempio n. 3
0
 public void DeleteTeam(Team team)
 {
     repo.DeleteTeam(team);
 }