Exemplo n.º 1
0
        public List <FrayteShipmentTracingDetail> GetTracingDetail(string Barcode)
        {
            List <FrayteShipmentTracingDetail> lstshipmentTracingDetail = new List <FrayteShipmentTracingDetail>();
            var result = dbContext.spGet_ShipmentTracingDetail(Barcode).ToList();
            FrayteShipmentTracingDetail fs;

            foreach (var rr in result)
            {
                fs             = new FrayteShipmentTracingDetail();
                fs.FrayteAWB   = rr.FrayteAWB;
                fs.From        = rr.CountryFrom;
                fs.To          = rr.CountryTo;
                fs.Comment     = rr.Comment;
                fs.CommentDate = rr.CommentDate;
                lstshipmentTracingDetail.Add(fs);
            }
            return(lstshipmentTracingDetail);
        }