public ActionResult List() { var countryListContext = new CountryListContext(); var list = countryListContext.CountryList; return View(list); }
// GET: Employee public ActionResult Details(int id) { var countryListContext = new CountryListContext(); var countryList = countryListContext.CountryList.Single(ctr => ctr.CountryID == id); return View(countryList); }