コード例 #1
0
 public async void OnGet(string query)
 {
     placa = Request.QueryString.HasValue ? Request.QueryString.Value.Split('=')[1] : "";
     if (String.IsNullOrWhiteSpace(placa))
     {
         Registros = await service.GetAll();
     }
     else
     {
         Registros = await service.SearchByPlaca(placa);
     }
 }