public void DeleteProduct(int productId) { productRepository.Delete(GetProductById(productId)); }
public void CancelOrder(int orderId) { var order = GetOrderById(orderId); orderRepository.Delete(order); }
public void DeleteProduct(int productId) { productRepository.Delete(GetProductById(productId)); }
public void CancelOrder(int orderId) { var order = GetOrderById(orderId); orderRepository.Delete(order); }