Пример #1
0
 public void DeleteProducer(int id)
 {
     dbContext.Remove(new Producer()
     {
         ProducerId = id
     });
     dbContext.SaveChanges();
 }
 public void DeleteSiteCard(int id)
 {
     dbContext.Remove(new ProductSiteCard()
     {
         ProductId = id
     });
     dbContext.SaveChanges();
 }