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(); }
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(); }