Esempio n. 1
0
        public ShipmentDetailModel GetShipmentById(string shipmentId)
        {
            var result = _shipmentRepository.GetShipmentById(shipmentId);

            result.RequestList   = _requestRepository.GetRequestsByShipmentId(result.Id);
            result.RequestIdList = _requestRepository.GetRequestIdList(result.Id);

            result.Warehouse = _warehouseRepository.GetWarehouseByIdlAsync(shipmentId);

            return(result);
        }
Esempio n. 2
0
 public async Task <Shipment> GetShipmentById(string id)
 {
     return(await _shipmentRepository.GetShipmentById(id));
 }