public override void Delete(Guid ID)
        {
            SubCategorySpecification currentSubCatSpe = GetObjectByID(ID);

            db.SubCategorySpecifications.Remove(currentSubCatSpe);
            db.SaveChanges();
        }
        public override void Delete(Guid ID)
        {
            Product currentProduct = GetObjectByID(ID);

            db.Products.Remove(currentProduct);
            db.SaveChanges();
        }
Exemple #3
0
        public override void Delete(Guid ID)
        {
            SuperCategory currentSuperCat = GetObjectByID(ID);

            db.SuperCategories.Remove(currentSuperCat);
            db.SaveChanges();
        }
Exemple #4
0
        public override void Delete(Guid ID)
        {
            Brand currentBrand = GetObjectByID(ID);

            db.Brands.Remove(currentBrand);
            db.SaveChanges();
        }
Exemple #5
0
        public override void Delete(Guid ID)
        {
            Category currentCategory = GetObjectByID(ID);

            db.Categories.Remove(currentCategory);
            db.SaveChanges();
        }