public IActionResult GetSection(int venueId, string sectionName) { SectionRepository sectionRepo = new SectionRepository(_context); var venue = _context.Venue.FirstOrDefault(v => v.VenueId == venueId); if (venue == null) { return(NotFound($"Venue '{venueId}' Not Found")); } var section = _context.Section.FirstOrDefault(s => (s.Venue.VenueId == venue.VenueId) && (s.SectionName == sectionName)); if (section == null) { return(NotFound($"Section '{sectionName}' Not Found for Venue '{venueId}'")); } return(Ok(sectionRepo.GetSection(section))); }