示例#1
0
        //// POST: Asset/Delete/5
        //[HttpPost, ActionName("Delete")]
        //[ValidateAntiForgeryToken]
        //public ActionResult DeleteConfirmed(int id)
        //{
        //    asset asset = db.assets.Find(id);
        //    db.assets.Remove(asset);
        //    db.SaveChanges();
        //    return RedirectToAction("Index");
        //}

        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                db.Dispose();
            }
            base.Dispose(disposing);
        }
 protected override void Dispose(bool disposing)
 {
     _dbContext.Dispose();
     base.Dispose(disposing);
 }