// GET /api/venue/ public IEnumerable <VenueResponse> Get() { return(_venueRepository.Get().Select(venue => new VenueResponse { Id = venue.Id, Name = venue.Name, Address = venue.Address, City = venue.City, Zip = venue.Zip, Employees = GetEmployeesForVenue(venue.Id), TablePackages = _tablePackagesController.GetByVenueId(venue.Id), Beverages = _beveragesController.GetByVenueId(venue.Id), VenueHours = _venueHoursController.GetByVenueId(venue.Id), Tables = _tablesController.GetByVenueId(venue.Id) })); }
public Venue GetById(int id) { return(vanRepo.Get(id)); }