Example #1
0
        private static void UpdateHomeCacheData(int addressSysNo)
        {
            var address = AddressService.LoadAddress(addressSysNo);

            if (address != null)
            {
                (new MapDataService(address.CompanySysNo)).DataChangeAsync();
            }
        }
Example #2
0
        public void Init()
        {
            var model = new MapData();

            model.SmokeDetectors = SmokeDetectorServices.GetMapDataSmokeDetector(CompanySysNo);
            model.Address        = AddressService.GetMapDataAddress(CompanySysNo);
            model.AddressMaps    = AddressMapService.GetCompanyAddressMap(CompanySysNo);

            Cache.Set(Key, model, DateTime.Now.AddDays(CacheDays));
        }