public ActionResult DeleteTeam(int id) { var team = _repository.GetTeamById(id); if (team == null) { return(NotFound()); } _repository.DeleteTeam(team); _repository.SaveChanges(); return(NoContent()); }
public async Task <string> DeleteTeam(Guid teamId) { await _repo.DeleteTeam(teamId); return($"{teamId} has been deleted!"); }
public void DeleteTeam(Team team) { repo.DeleteTeam(team); }