Skip to content

Instantly share code, notes, and snippets.

@dcomartin
Last active May 26, 2021 21:36
Show Gist options
  • Save dcomartin/a7b2d6082d9d7a5c2fefc01ad9b289ae to your computer and use it in GitHub Desktop.
Save dcomartin/a7b2d6082d9d7a5c2fefc01ad9b289ae to your computer and use it in GitHub Desktop.
public interface IProductService
{
Task<Product> GetProductBySku(string sku);
Task<Product> GetProductForSaleBySku(string sku);
Task<List<Product>> GetProducts();
Task UpdateProductInfo();
Task IncreasePrice(string sku, decimal price);
Task DecreasePrice(string sku, decimal price);
Task IncreaseCost(string sku, decimal cost);
Task DecreaseCost(string sku, decimal cost);
Task ShipProduct(string sku, Guid salesOrderId);
Task ReceiveProduct(string sku, Guid purchaseOrderId);
Task AdjustInventory(string sku, int quantity);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment