Ejemplo n.º 1
0
        public static int CreateSingleOrder(int id, int customerid, string paymenttype, string adress, string deliverytype, double price)
        {
            db = new Database();
            SingleOrderModel data = new SingleOrderModel()
            {
                CustomerId   = customerid,
                PaymentType  = paymenttype,
                Adress       = adress,
                DeliveryType = deliverytype,
                Price        = price,
            };

            return(SingleOrderDao.Insert(db, data));
        }
Ejemplo n.º 2
0
 public static Collection <SingleOrderModel> GetAllResults()
 {
     db = new Database();
     return(SingleOrderDao.LoadAll(db));
 }