예제 #1
0
        /// <summary>
        /// Get data
        /// </summary>
        /// <returns></returns>
        public object GetData()
        {
            List <DeliveryDetails> result = new List <DeliveryDetails>();
            DataProvidor           dp     = new DataProvidor();

            foreach (DataAccess.Models.DeliveryDetails deliveryDetails in dp.GetdeliveryDetailsData())
            {
                DeliveryDetails _deliveryDetails = new DeliveryDetails();
                _deliveryDetails.DeliveryDetailsId = deliveryDetails.DeliveryDetailsId;
                _deliveryDetails.DeliveryDate      = deliveryDetails.DeliveryDate;
                _deliveryDetails.DeliveryMethod    = deliveryDetails.DeliveryMethod;
                _deliveryDetails.PersonInCharge    = deliveryDetails.PersonInCharge;
                _deliveryDetails.AddressLine1      = deliveryDetails.AddressLine1;
                _deliveryDetails.AddressLine2      = deliveryDetails.AddressLine2;
                _deliveryDetails.City           = deliveryDetails.City;
                _deliveryDetails.State          = deliveryDetails.State;
                _deliveryDetails.AddtionalNotes = deliveryDetails.AddtionalNotes;
                result.Add(_deliveryDetails);
            }

            return(result);
        }