Exemplo n.º 1
0
 public async Task <ActionResult> FindById([FromQuery] IdRequest request)
 {
     try
     {
         if (!ModelState.IsValid)
         {
             return(BadRequest(ModelState));
         }
         return(Ok(await _cityService.FindById(request.Id)));
     }
     catch (Exception ex)
     {
         return(BadRequest());
     }
 }