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()); }
public BaseAdminController() { citySchoolSv = new CitySchoolSv(); }