phronCare/phronCare.UIBlazor/Services/Sales/PeopleGroupService.cs
Leandro Hernan Rojas bba48a7e28
All checks were successful
CI/CD Pipeline / Build and Deploy with Docker Compose (push) Successful in 10m52s
Update UI y API Vendedores y Mapeo de Quote
2025-04-28 14:38:00 -03:00

22 lines
528 B
C#

using System.Net.Http.Json;
using Domain.Entities;
namespace phronCare.UIBlazor.Services.People
{
public class PeopleGroupService
{
private readonly HttpClient _http;
public PeopleGroupService(HttpClient http)
{
_http = http;
}
public async Task<List<EPeopleGroup>> GetAllAsync()
{
var result = await _http.GetFromJsonAsync<List<EPeopleGroup>>("/api/PeopleGroup/All");
return result ?? new List<EPeopleGroup>();
}
}
}