Esempio n. 1
0
        public Shipment GetById(decimal id)
        {
            Shipment shipment   = new Shipment();
            var      shipmentDa = new ShipmentDA();

            try
            {
                var ds = shipmentDa.GetByContractId(id);
                shipment = CBO <Shipment> .FillObject_From_DataSet(ds);
            }
            catch (Exception ex)
            {
                Common.log.Error(ex.ToString());
            }
            return(shipment);
        }
Esempio n. 2
0
        public List <Shipment> GetByContractId(decimal contractId)
        {
            List <Shipment> lstShipment = new List <Shipment>();
            var             shipmentDa  = new ShipmentDA();

            try
            {
                var ds = shipmentDa.GetByContractId(contractId);
                lstShipment = CBO <Shipment> .FillCollectionFromDataSet(ds);
            }
            catch (Exception ex)
            {
                Common.log.Error(ex.ToString());
            }
            return(lstShipment);
        }