示例#1
0
        public void listTinh(string selected)
        {
            List <vTinh> tinh = _thanhphoRepository.ListTinh().ToList();

            ViewBag.tinh = new SelectList(tinh, "Matinh", "Tentinh", selected);
        }
        public IActionResult index()
        {
            var listTinh = _thanhphoRepository.ListTinh().OrderBy(x => x.Matinh);

            return(View(listTinh));
        }