Ejemplo n.º 1
0
        // GET: Routs/Create
        public IActionResult Create()
        {
            var cities = _dbAccess.GetCities();

            ViewData["EndCityId"]   = new SelectList(cities, "Id", "Name");
            ViewData["StartCityId"] = new SelectList(cities, "Id", "Name");
            return(View());
        }
Ejemplo n.º 2
0
 // GET: LogisticsCenters/Create
 public IActionResult Create()
 {
     ViewData["CityId"] = new SelectList(_dbAccess.GetCities(), "Id", "Name");
     return(View());
 }
Ejemplo n.º 3
0
 // GET: Cities
 public async Task <IActionResult> Index()
 {
     return(View(_dbAccess.GetCities()));
 }