Esempio n. 1
0
        private StoreSDTO MongoToDto3(StoreMgDTO entity, decimal lat, decimal lon)
        {
            StoreSDTO store = MongoToDto(entity);

            store.Distance = (decimal)DistanceHelper.GetGreatCircleDistance((double)lat, (double)lon, entity.Location[1], entity.Location[0]);
            return(store);
        }