public static AccountModel FromAccount(Account account) { return(new AccountModel() { Id = account.Id, Name = account.Name, InitialBalance = account.InitialBalance, Currency = CurrencyModel.FromCurrency(account.Currency), }); }