Exemplo n.º 1
0
        public ActionResult citySelect(string pvnId)
        {
            if (string.IsNullOrEmpty(pvnId))
            {
                throw new ArgumentNullException();
            }
            var cit = new CitySchoolSv().GetCity(pvnId);
            var s   = from n in cit
                      select new
            {
                n.id,
                n.name
            };

            ViewData["cities"] = new SelectList(s, "id", "name");
            return(PartialView());
        }
Exemplo n.º 2
0
 public BaseAdminController()
 {
     citySchoolSv = new CitySchoolSv();
 }