public void Load(Guid clientId, Guid practiceId) { PracticeId = practiceId; ClientId = clientId; ICashFlowManagerService service = new CashFlowManagerService(); BankAccounts = service.GetBankAccounts(clientId); }
public void Load(string clientId, string practiceId, int numberMonths) { ICashFlowManagerService service = new CashFlowManagerService(); Transactions = service.GetTransactions(new Guid(clientId)); BankAccounts = service.GetBankAccounts(new Guid(clientId)); PracticeId = practiceId; ClientId = clientId; TransactionHelper helper = new TransactionHelper(); var results = helper.GenerateData(Transactions, numberMonths); SummaryChartData = helper.SummariseData(results, BankAccounts); }
public void LoadData(string practiceId) { ICashFlowManagerService service = new CashFlowManagerService(); PracticeId = new Guid(practiceId); Clients = service.GetClients(PracticeId); Transactions = service.GetTransactions(); BankAccounts = service.GetBankAccounts(); PracticeId = new Guid(practiceId); PopulateClientPosition(); }