Ajout du niveau d'experience
This commit is contained in:
@@ -14,11 +14,12 @@ public class GetAllProvidersEndpoint(PyroFetesDbContext pyroFetesDbContext) : En
|
||||
|
||||
public override async Task HandleAsync(CancellationToken ct)
|
||||
{
|
||||
List<GetProviderDto> provider= await pyroFetesDbContext.ServiceProviders.Select(x => new GetProviderDto()
|
||||
List<GetProviderDto> provider= await pyroFetesDbContext.ServiceProviders.Include(x => x.ProviderType).Select(x => new GetProviderDto()
|
||||
{
|
||||
Id = x.Id,
|
||||
Price = x.Price,
|
||||
ProviderTypeId = x.ProviderTypeId,
|
||||
ProviderType = x.ProviderType.Label,
|
||||
}).ToListAsync(ct);
|
||||
|
||||
await Send.OkAsync(provider, ct);
|
||||
|
||||
Reference in New Issue
Block a user