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(); }); }
public ManageAYViewModel() { accessRepo = new AccessYearRepository(); LoadAccessYear(); }