public async Task <BaseRetornoApi <CityViewModel> > Handler(CityListCommand command) { try { return(await _rCity.GetListCityAsync(command.EstadoId, command.Cidade, command.PageNumber, command.RowspPage)); } catch (Exception ex) { throw ex; } }
public async Task <BaseRetornoApi <CityViewModel> > Get([FromQuery] CityListCommand command) { try { return(await _cityHandler.Handler(command)); } catch (Exception ex) { throw ex; } }