Esempio n. 1
0
        public bool SaveStatusBill(int id)
        {
            HoaDonCuoc bill = db.HoaDonCuocs.Single(a => a.idHD == id);

            bill.TinhTrang = 1;
            db.SaveChanges();
            return(true);
        }
Esempio n. 2
0
        public bool AddBill(string phone, decimal?totalprice, int month)
        {
            HoaDonCuoc bill = new HoaDonCuoc();

            bill.SoDT      = phone;
            bill.TongTien  = totalprice;
            bill.Month     = month;
            bill.TinhTrang = 0;
            bill.Year      = 2019;
            db.HoaDonCuocs.Add(bill);
            db.SaveChanges();

            return(true);
        }
Esempio n. 3
0
 public int InsertBill(HoaDonCuoc hoadon) // Thêm Hóa đơn cước
 {
     db.HoaDonCuocs.Add(hoadon);
     db.SaveChanges();
     return(hoadon.idHD);
 }