Esempio n. 1
0
        public ActionResult List()
        {
            var countryListContext = new CountryListContext();
            var list = countryListContext.CountryList;

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

            return View(countryList);
        }