using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using WebSamples.Entities.Interfaces;

namespace WebSamples.Services.ExposedEntities.Translators
{
    public static class ExposedGeoCityTranslator
    {
        #region Translation methods

        public static ExposedGeoCity ToExpositionEntity(IGeoCity city)
        {
            return new ExposedGeoCity()
            {
                CityName = city.CityName,
                CityInformation = city.CityInformation,
                DemographicInformation = city.DemographicInformation,
                Latitude = city.Latitude,
                Longitude = city.Longitude, 
                Distance = city.Distance
            };
        }

        #endregion
    }
}