Example #1
0
        public async Task <IActionResult> CrearRuta()
        {
            ViewBag.Zonas = await _ZonaService.ListarZonas();

            ViewBag.Vendedores = await _VendedorService.ListarVendedor();

            return(View(new Ruta()));
        }
        public async Task <IActionResult> ListarZonas()
        {
            var _LstZonas = await _ZonaService.ListarZonas();

            if (_LstZonas == null)
            {
                return(View(new List <Zona>()));
            }
            else
            {
                return(View(_LstZonas));
            }
        }