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); }
public async Task <Shipment> GetShipmentById(string id) { return(await _shipmentRepository.GetShipmentById(id)); }