Fix 1200
This commit is contained in:
		| @@ -40,7 +40,7 @@ public class ElectoralApiService : IElectoralApiService | ||||
|             : null; | ||||
|     } | ||||
|  | ||||
|     public async Task<List<CatalogoDto>?> GetCatalogoAmbitosAsync(string authToken, int categoriaId) | ||||
|     public async Task<CatalogoDto?> GetCatalogoAmbitosAsync(string authToken, int categoriaId) | ||||
|     { | ||||
|         var client = _httpClientFactory.CreateClient("ElectoralApiClient"); | ||||
|         var request = new HttpRequestMessage(HttpMethod.Get, $"/api/catalogo/getCatalogo?categoriaId={categoriaId}"); | ||||
| @@ -48,7 +48,7 @@ public class ElectoralApiService : IElectoralApiService | ||||
|  | ||||
|         var response = await client.SendAsync(request); | ||||
|         return response.IsSuccessStatusCode | ||||
|             ? await response.Content.ReadFromJsonAsync<List<CatalogoDto>>() | ||||
|             ? await response.Content.ReadFromJsonAsync<CatalogoDto>() | ||||
|             : null; | ||||
|     } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user