Example #1
0
        public void Delete(int id)
        {
            ProductSupplier toDelete = db.ProductSuppliers.Find(id);

            if (toDelete != null)
            {
                db.Remove(toDelete);
            }
        }
Example #2
0
        public void Delete(int id)
        {
            Category toDelete = db.Categories.Find(id);

            if (toDelete != null)
            {
                db.Remove(toDelete);
            }
        }