public IActionResult GetPopular([FromRoute] int limit) { try { return(Ok(_establishmentRepository.GetPopular(limit))); } catch (EstablishmentException e) { return(BadRequest(e.Message)); } }
public IActionResult GetPopular([FromRoute] int limit) { try { return(Ok(_establishmentRepository.GetPopular(limit))); } catch (EstablishmentException e) { return(BadRequest(e.Message)); } }