Exemplo n.º 1
0
 public OnlyCityModel EntityToUI(tbAdress city)
 {
     OnlyCityModel cityUI = new OnlyCityModel();
     //tbCurrency
     cityUI.Bank = city.tbBank.cName;
     cityUI.City = city.cCity;
     return cityUI;
 }
Exemplo n.º 2
0
        public BankByCityCountryModel EntityToUI(tbAdress address)
        {
            BankByCityCountryModel addressUI = new BankByCityCountryModel();
            //tbCurrency
            addressUI.Name = address.tbBank.cName;
            addressUI.Rating = address.tbBank.cRating;
            //rate curr

            return addressUI;
        }
Exemplo n.º 3
0
 public AddressModelForBanks EntityToUI(tbAdress address)
 {
     AddressModelForBanks addressUI = new AddressModelForBanks();
     //tbAddress
     addressUI.Address = address.cAdressVal;
     addressUI.Latitude = address.cLatitude;
     addressUI.Longitude = address.cLongitude;
     //tbBank
     addressUI.Name = address.tbBank.cName;
     
     return addressUI;
 }
Exemplo n.º 4
0
 public ClosestPointModel EntityToUI(tbAdress adress, double latitude, double longitude)
 {
     ClosestPointModel adressUI = new ClosestPointModel();
     //tbCurrency
     adressUI.Address = adress.cAdressVal;
     
     adressUI.Longitude = adress.cLongitude;
     adressUI.Latitude = adress.cLatitude;
     adressUI.Name = adress.tbBank.cName;
     adressUI.FakeLatitude = Math.Abs( Convert.ToDouble(adress.cLatitude) - latitude);
     adressUI.FakeLongitude = Math.Abs(Convert.ToDouble(adress.cLongitude) - longitude);
     //rate curr
     
     return adressUI;
 }