public IActionResult GetById(int id) { if (_context.GetPlaceById(id) == null) { return(BadRequest("No place found for that id")); } else { _context.GetPlaceById(id); return(Ok(_context.GetPlaceById(id))); } }
public IActionResult GetById(int id) { if (_context.GetPlaceById(id) == null) { return(BadRequest("No place found for that id")); } else { _context.GetPlaceById(id); return(Ok(_context.GetPlaceById(id))); } }