public void DeleteById(Guid id) { var foodProduct = _readChangeProduct.DeleteById(id); if (foodProduct == null) { NotFound(); } _dbContext.SaveChanges(); }
public void Save() { _dbContext.SaveChanges(); }
public void DeleteById(Guid id) { var foodProduct = _readChangeProduct.DeleteById(id); if (foodProduct == null) { NotFound(); } _dbContext.SaveChanges(); }
public void Save() { _dbContext.SaveChanges(); }