public InvoiceInformationViewModel(DAL.EDMX.Client client, AccessYear ay) { Client = client; AY = ay; companyRepo = new CompanyRepository(); clientRepo = new ClientRepository(); LoadCompayDetails(); }
public GenerateInvoiceViewModel(DAL.EDMX.Client client) { accessRepo = new AccessYearRepository(); invoiceRepo = new ClientInvoiceRespository(); Client = client; NoRecordFound = Visibility.Collapsed; LoadAccessYear(); Messenger.Default.Register <InvoiceInformationViewModel>(this, (send) => { LoadInvoices(); }); }