Exemple #1
0
        public async Task <IActionResult> Search()
        {
            var lista = await _repo.AllPostalCodesSelect();

            ViewBag.Postal = new SelectList(lista, "Text");



            return(View());
        }
Exemple #2
0
        public async Task <IActionResult> Configure()
        {
            var lista = await _repoPostalCode.AllPostalCodesSelect();

            var proxyIps = _context.ProxyIps.Where(x => x.Active).Select(x => String.IsNullOrWhiteSpace(x.Port) ? x.Ip: x.Ip + ":" + x.Port).ToList();

            ViewBag.ProxyIps = new SelectList(proxyIps, "Text");

            ViewBag.Postal               = new SelectList(lista, "Text");
            ViewBag.PropertyType         = new SelectList(EnumHelper.PropertyTypeList(), "Id", "Text");
            ViewBag.ProcessType          = new SelectList(EnumHelper.ProcessTypeList(), "Id", "Text");
            ViewBag.ScheduleIntervalType = new SelectList(EnumHelper.ScheduleIntervalType(), "Id", "Text");

            return(View());
        }