Skip to content

Instantly share code, notes, and snippets.

@andresmoschini
Created January 25, 2012 17:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save andresmoschini/1677375 to your computer and use it in GitHub Desktop.
Save andresmoschini/1677375 to your computer and use it in GitHub Desktop.
class ClientA
{
public virtual List<Invoice> Invoices { get; set; }
//...
public Product GetMostBuyedProduct(DateTime from, DateTime to)
{
//...
}
}
class ClientB
{
public InvoiceRepository InvoiceRepository { get; set; }
//...
public Product GetMostBuyedProduct(DateTime from, DateTime to)
{
InvoiceRepository.GetMostBuyedProduct(this.Id, from, to);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment