Esempio n. 1
0
        public async Task <ActionResult> ConfirmBill(long id)
        {
            bool result = await billDAO.ConfirmBill(id);

            if (result)
            {
                TempData["BillStatus"] = "Bạn đã chuyển trạng thái hóa đơn thành công!";
            }
            else
            {
                TempData["BillStatus"] = "Không đủ hàng! Xin kiểm tra lại!";
            }
            return(Json(result ? 1 : 0));
        }