Пример #1
0
        public async Task <IReadOnlyList <AShipment_ShipmentRequestSummary> > GetShipmentRequestSummariesAsync(MFulfillment_ShipmentRequestStatus shipmentRequestStatus, int?recordCount)
        {
            using var log = BeginFunction(nameof(ShipmentAdminService), nameof(GetShipmentRequestSummariesAsync), shipmentRequestStatus, recordCount);
            try
            {
                await Assert(SecurityPolicy.AllowViewFulfillment);

                var mShipmentRequestSummaryList = await FulfillmentMicroService.GetShipmentRequestSummariesAsync(shipmentRequestStatus, recordCount).ConfigureAwait(false);

                var summaries = Create.AShipment_ShipmentRequestSummaries(mShipmentRequestSummaryList.Summaries);

                var result = summaries;

                log.Result(result);

                return(result);
            }
            catch (Exception ex)
            {
                log.Exception(ex);
                throw;
            }
        }
Пример #2
0
 public string CreatePagingStateFilter(MFulfillment_ShipmentRequestStatus shipmentRequestStatus, int recordCount)
 {
     return($"{shipmentRequestStatus}|{recordCount}");
 }