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 ); }
public IActionResult Index() { var taxClaculationView = new TaxCalculateViewModel() { PostalCodes = _postalCodeRepository.GetAll() }; return(View(taxClaculationView)); }
public IActionResult GetPostalCodes() { var settings = new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore, MissingMemberHandling = MissingMemberHandling.Ignore }; var codes = _postalCodeRepository.GetAll(); return(Ok(JsonConvert.SerializeObject(codes, settings))); }