public async Task <IActionResult> Create() { CityCountriesVM vm = new CityCountriesVM() { Countries = await _context.Country.ToListAsync() }; return(View(vm)); }
public async Task <IActionResult> Edit(int id) { CityCountriesVM vm = new CityCountriesVM() { City = await _context.City.FindAsync(id), Countries = await _context.Country.ToListAsync() }; return(View(vm)); }