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 GetPoDetail : DXPBaseEndpoint> { private readonly IVendorPoBLL _bll; public GetPoDetail(IVendorPoBLL bll) { _bll = bll; } public override void Configure() => Post("/DXP/VendorPo/GetPoDetail"); protected override async Task> ExecuteAsync( GetPoDetailParameters req, DXPCallerContext caller, CancellationToken ct) { var po = await _bll.GetPoDetailAsync( req.MMHeadId, caller.LocalPartyId, caller.TenantId, caller.DatabaseName, caller.DatabaseType, ct); return new ResponseStandardDTO { Status = FrameworkEnumDTO.ResponseStatus.Ok, Body = po }; } }