Exemplo n.º 1
0
        // GET: Country
        public ActionResult Index()
        {
            var data = districtServices.GetAll();

            return(View(data));
        }
Exemplo n.º 2
0
        public void LoadDropdown()
        {
            var districlist = districtServices.GetAll();

            ViewBag.districlst = new SelectList(districlist, "DistrictId", "DistrictName");
        }