Example #1
0
 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;
     }
 }
Example #2
0
 public async Task <BaseRetornoApi <CityViewModel> > Get([FromQuery] CityListCommand command)
 {
     try
     {
         return(await _cityHandler.Handler(command));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }