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)); }
public InvoiceStateDto GetById(Guid id) { return(Invoices.AsQueryable <InvoiceStateDto>() .Single(c => c.Id == id)); }