public IEnumerable <LeagueViewModel> GetAll() { return(mapper.MapDomainToModel(leagueRepository.GetAll())); }
public TeamViewModel GetTeamById(int id) { var team = repository.Get(id); return(mapper.MapDomainToModel(team)); }