private void ShowAccountTypes() { AuditDetailsClient auditClient = new AuditDetailsClient(); var accountTypesData = auditClient.GetAccountsTypeData(); AccountsTypes = new ObservableCollection <AccountsAuditTypeModel>(); foreach (var accountType in accountTypesData) { AccountsAuditTypeModel accountData = new AccountsAuditTypeModel(); accountData.Id = accountType.AccountId; accountData.AccountsTypeCode = accountType.AccountTypeCode; accountData.AccountsType = accountType.AccountType; accountData.Limit = accountType.Limit; accountData.LastUpdated = accountType.DateUpdated; AccountsTypes.Add(accountData); } }
public AuditAccountsViewModel() { AccountType = new AccountsAuditTypeModel(); ShowAccountTypes(); }