Ejemplo n.º 1
0
        public async Task <IReadOnlyList <AShipment_ShipmentSummary> > GetShipmentSummariesAsync(MFulfillment_ShipmentStatus shipmentStatus, int?recordCount)
        {
            using var log = BeginFunction(nameof(ShipmentAdminService), nameof(GetShipmentSummariesAsync), shipmentStatus, recordCount);
            try
            {
                await Assert(SecurityPolicy.AllowViewFulfillment);

                var mShipmentSummaryList = await FulfillmentMicroService.GetShipmentSummariesAsync(shipmentStatus, recordCount);

                var summaries = Create.AShipment_ShipmentSummaries(mShipmentSummaryList.Summaries);

                var result = summaries;

                log.Result(result);

                return(result);
            }
            catch (Exception ex)
            {
                log.Exception(ex);
                throw;
            }
        }
Ejemplo n.º 2
0
 public string CreatePagingStateFilter(MFulfillment_ShipmentStatus shipmentStatus, int recordCount)
 {
     return($"{shipmentStatus}|{recordCount}");
 }