using DXPBLL.VendorPo; using DXPSL.Common; using DXPSL.Parameters.VendorPo; using GB5Shared.DTO.Framework.Enum; using GB5Shared.DTO.Framework.ResponseStandard; namespace DXPSL.Endpoints.VendorPo; public class GetPendingPoList : DXPBaseEndpoint> { private readonly IVendorPoBLL _bll; public GetPendingPoList(IVendorPoBLL bll) { _bll = bll; } public override void Configure() => Post("/DXP/VendorPo/GetPendingPoList"); protected override async Task> ExecuteAsync( GetPendingPoListParameters req, DXPCallerContext caller, CancellationToken ct) { var result = await _bll.GetPendingPoListAsync( caller.DxpPartyId, caller.LocalPartyId, req.OuId, req.PoBizTransactionTypeId, req.SearchText, req.PageOffset, req.PageSize, caller.TenantId, caller.DatabaseName, caller.DatabaseType, ct); return new ResponseStandardDTO { Status = FrameworkEnumDTO.ResponseStatus.Ok, Body = result }; } }