Fixed error with update of quantity in stock page

This commit is contained in:
2026-05-26 12:06:15 +01:00
parent fdaead91ff
commit 19c63ef317
2 changed files with 2 additions and 2 deletions
@@ -0,0 +1,19 @@
using FastEndpoints;
using PyroFetes.DTO.WareHouse.Response;
using PyroFetes.Repositories;
namespace PyroFetes.Endpoints.WareHouse;
public class GetAllWarehouseEndpoint(WareHouseRepository wareHouseRepository, AutoMapper.IMapper mapper) : EndpointWithoutRequest<List<GetWareHouseDto>>
{
public override void Configure()
{
Get("/wareHouses/");
AllowAnonymous();
}
public override async Task HandleAsync(CancellationToken ct)
{
await Send.OkAsync(await wareHouseRepository.ProjectToListAsync<GetWareHouseDto>(ct), ct);
}
}