public IActionResult Edit(int id) { List <Country> countries = new Project1.ADONetCRUDs.CountryDbCommands().GetCountry(); Country country = countries.First(a => a.ID == id); return(View(country)); }
public IActionResult List() { List <Country> countries = new Project1.ADONetCRUDs.CountryDbCommands().GetCountry(); return(View(countries)); }