Skip to content

Instantly share code, notes, and snippets.

@merken
Last active December 29, 2019 12:09
Show Gist options
  • Save merken/8470a873e1832e2b068cd0c8d2a1899d to your computer and use it in GitHub Desktop.
Save merken/8470a873e1832e2b068cd0c8d2a1899d to your computer and use it in GitHub Desktop.
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace Contract
{
public interface IProductsRepository
{
Task<IEnumerable<Product>> All();
Task<Product> Get(int productId);
}
public class Product
{
public int Id { get; set; }
public string Name { get; set; }
public string SKU { get; set; }
public string Description { get; set; }
public decimal PriceExlVAT { get; set; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment