示例#1
0
 public static CityAccountListing MapFromObject(CityAccount cityAccount)
 {
     return(new CityAccountListing()
     {
         CityAccountId = cityAccount.CityAccountId,
         Name = cityAccount.Name
     });
 }
示例#2
0
        public List <CityAccount> GetCityAccounts()
        {
            var cityAccounts = new List <CityAccount>();

            foreach (var cityAccount in _accountRepository.GetCityAccounts())
            {
                cityAccounts.Add(CityAccount.MapFromEntity(cityAccount));
            }

            return(cityAccounts);
        }