public async Task <SportDTO> GetSport(int id) { var sport = await _sportRepository.GetSport(id); return(_mapper.Map <SportDTO>(sport)); }
public Sport GetSport(int id) { return(_repository.GetSport(id)); }
// GET: api/Sport/5 public Sport Get(int id) { return(_iSportRepository.GetSport((long)id)); }