Пример #1
0
        public DemoOrderData LoadSingleOrder(string id)
        {
            var demoOrder = DemoOrderDAO.Instance.LoadSingleOrder(id);

            if (demoOrder == null)
            {
                return(null);
            }

            return(DemoOrderAdapter.Biz2Contract(demoOrder));
        }
Пример #2
0
        public DemoOrderData LoadByOrderID(string demoOrderID)
        {
            var demoOrder = DemoOrderDAO.Instance.LoadByOrderID(demoOrderID);

            if (demoOrder == null)
            {
                return(null);
            }

            return(DemoOrderAdapter.Biz2Contract(demoOrder));
        }
Пример #3
0
 public void Update(DemoOrderData data)
 {
     DemoOrderDAO.Instance.Update(DemoOrderAdapter.Contract2Biz(data));
 }