protected override void Dispose(bool disposing) { if (disposing) { db.Dispose(); } base.Dispose(disposing); }
public CategoryViewModel() { Categories = dbCategoryContext.Categories.ToList(); dbCategoryContext.Dispose(); }
public void Dispose() { _context.Dispose(); }