public IInvoice GetById(Guid id)
 {
     return(Invoices.AsQueryable <Invoice>()
            .Single(c => c.Id == id));
 }
 public IInvoice GetByNumber(string invoiceNumber)
 {
     return(Invoices.AsQueryable <Invoice>()
            .Single(c => c.Number == invoiceNumber));
 }
예제 #3
0
 public InvoiceStateDto GetById(Guid id)
 {
     return(Invoices.AsQueryable <InvoiceStateDto>()
            .Single(c => c.Id == id));
 }