Exemplo n.º 1
0
        public ActionResult MakeAccountTrans(int customerId, decimal amount, string note)
        {
            CakesPosRepository cpr = new CakesPosRepository(_connectionString);

            cpr.MakeAccountTrans(customerId, amount, note);
            return(null);
        }
Exemplo n.º 2
0
        public ActionResult DeductFromAccount(int customerId, int orderId, decimal amount)
        {
            CakesPosRepository cpr = new CakesPosRepository(_connectionString);

            cpr.MakeAccountTrans(customerId, -amount, "Order #" + orderId + " Withdrawal");
            return(null);
        }