public ActionResult DeleteConfirmed(int id)
        {
            ChiTietBaoCaoBanHang chiTietBaoCaoBanHang = db.ChiTietBaoCaoBanHangs.Find(id);

            db.ChiTietBaoCaoBanHangs.Remove(chiTietBaoCaoBanHang);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "MaBaoCaoBanHang,Ngay,SoLuongPhieuBanHang,DoanhThu,TiLe")] ChiTietBaoCaoBanHang chiTietBaoCaoBanHang)
 {
     if (ModelState.IsValid)
     {
         db.Entry(chiTietBaoCaoBanHang).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.MaBaoCaoBanHang = new SelectList(db.BaoCaoBanHangs, "MaBaoCaoBanHang", "MaBaoCaoBanHang", chiTietBaoCaoBanHang.MaBaoCaoBanHang);
     return(View(chiTietBaoCaoBanHang));
 }
        // GET: ChiTietBaoCaoBanHang/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            ChiTietBaoCaoBanHang chiTietBaoCaoBanHang = db.ChiTietBaoCaoBanHangs.Find(id);

            if (chiTietBaoCaoBanHang == null)
            {
                return(HttpNotFound());
            }
            return(View(chiTietBaoCaoBanHang));
        }
        // GET: ChiTietBaoCaoBanHang/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            ChiTietBaoCaoBanHang chiTietBaoCaoBanHang = db.ChiTietBaoCaoBanHangs.Find(id);

            if (chiTietBaoCaoBanHang == null)
            {
                return(HttpNotFound());
            }
            ViewBag.MaBaoCaoBanHang = new SelectList(db.BaoCaoBanHangs, "MaBaoCaoBanHang", "MaBaoCaoBanHang", chiTietBaoCaoBanHang.MaBaoCaoBanHang);
            return(View(chiTietBaoCaoBanHang));
        }