public RegistrateInvoiceViewModel(IInvoiceDataAccess invoiceDataAccess, ICompanyDataAccess companyDataAccess, IPersonDataAccess personDataAccess) { _invoiceDataAccess = invoiceDataAccess; _companyDataAccess = companyDataAccess; _personDataAccess = personDataAccess; InitializeViewModel(); }
public InvoiceViewModel(IInvoiceDataAccess invoiceDataAccess) { _invoiceDataAccess = invoiceDataAccess; Invoices = _invoiceDataAccess.LoadAllInvoices(); }