public IEnumerable <Venue> GetAll() { var allEntities = _venueRepository.GetAll(); var result = new List <Venue>(); foreach (var entity in allEntities) { var venueVm = VenueMapper.FromEntity(entity); result.Add(venueVm); } return(result); }
public Venue GetById(int id) { var entity = _venueRepository.Get(id); return(VenueMapper.FromEntity(entity)); }