public async Task <ActionResult> DeletePlayerAsync(Guid teamId, Guid id) { await _playersRepository.DeleteAsync(teamId, id); return(NoContent()); }
public async Task Delete(int id) { await _playersRepository.DeleteAsync(w => w.Id == id); }