Esempio n. 1
0
        public ActionResult DeletePayments(int orderId)
        {
            CakesPosRepository cpr = new CakesPosRepository(_connectionString);

            cpr.DeletePaymentsById(orderId);
            return(null);
        }
Esempio n. 2
0
        public ActionResult DeleteOrder(int id)
        {
            CakesPosRepository cpr = new CakesPosRepository(_connectionString);

            cpr.DeleteStatusById(id);
            cpr.DeletePaymentsById(id);
            cpr.DeleteOrderDetailsById(id);
            cpr.DeleteOrderById(id);
            return(null);
        }