Skip to content

Instantly share code, notes, and snippets.

@dcomartin
Created December 5, 2016 15:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dcomartin/44484d45e15738d4ec5a088a3bcc792a to your computer and use it in GitHub Desktop.
Save dcomartin/44484d45e15738d4ec5a088a3bcc792a to your computer and use it in GitHub Desktop.
public interface IProductRepository
{
void Insert(Product product);
void Delete(Product product);
IEnumerable<Product> GetById(Guid id);
IEnumerable<Product> GetAllActive();
IEnumerable<Product> FindByName(string name);
IEnumerable<Product> FindBySku(string name);
IEnumerable<Product> Find(string keyword, int limit, int page);
IEnumerable<Product> GetRelated(Guid id);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment