public void TestMethod1()
        {
            var postalCode = _postalCodeRepository.GetAll().Take(2).ToList();

            _jobService.Job(postalCode, PropertyType.All, Data.Entity.ProcessType.Update_Price, isScheduled: false, scheduleInterval: ScheduleInterval.Daily, proxyIp: null
                            );
        }
Пример #2
0
        public IActionResult Index()
        {
            var taxClaculationView = new TaxCalculateViewModel()
            {
                PostalCodes = _postalCodeRepository.GetAll()
            };

            return(View(taxClaculationView));
        }
Пример #3
0
        public IActionResult GetPostalCodes()
        {
            var settings = new JsonSerializerSettings
            {
                NullValueHandling     = NullValueHandling.Ignore,
                MissingMemberHandling = MissingMemberHandling.Ignore
            };
            var codes = _postalCodeRepository.GetAll();

            return(Ok(JsonConvert.SerializeObject(codes, settings)));
        }