public LeagueDTO FindById(int id) { try { return(ObjectMapper.Mapper.Map <LeagueDTO>(repository.FindById(id))); } catch (Exception) { throw new Exception(); } }
public League FindById(Guid leagueId) { return(_leagueRepository.FindById(leagueId)); }