Example #1
0
 public void Delete(wishlist model)
 {
     if (model != null)
     {
         _context.wishlist.Remove(model);
         _context.SaveChanges();
     }
 }
Example #2
0
 public void Delete(coupons model)
 {
     if (model != null)
     {
         _context.coupons.Remove(model);
         _context.SaveChanges();
     }
 }
Example #3
0
 public void Delete(user model)
 {
     if (model != null)
     {
         _context.user.Remove(model);
         _context.SaveChanges();
     }
 }
Example #4
0
 public void Delete(orders model)
 {
     if (model != null)
     {
         _context.orders.Remove(model);
         _context.SaveChanges();
     }
 }
Example #5
0
        public void Delete(int id)
        {
            productImage img = _context.productImage.Find(id);

            if (img != null)
            {
                _context.productImage.Remove(img);
                _context.SaveChanges();
            }
        }
Example #6
0
        public void Delete(int id)
        {
            // delete içerisine bir id geldiğinde resim silecek
            productImage img = _context.productImage.Find(id);

            if (img != null)
            {
                _context.productImage.Remove(img);
                _context.SaveChanges();
            }
        }
Example #7
0
 public string yorumKaydet(comment yorum)
 {
     if (yorum != null)
     {
         _context.comment.Add(yorum);
         _context.SaveChanges();
         return("yorumunuz kaydedildi.");
     }
     else
     {
         return("yorum kaydedilemedi.");
     }
 }
Example #8
0
 public void Delete(category model)
 {
     _context.category.Remove(model);
     _context.SaveChanges();
 }
Example #9
0
 public void Delete(brand model)
 {
     _context.brand.Remove(model);
     _context.SaveChanges();
 }