Esempio n. 1
0
        //
        // GET: /Manage/YogaArticle/Create

        public ActionResult Create()
        {
            List <ViewYogaArtClass> listClass = clientClass.GetYogaArtClassPageList(0);

            ViewBag.ClassID = new SelectList(listClass, "ID", "ClassName");
            return(View());
        }
 /// <summary>
 /// 获取二级下拉列表
 /// </summary>
 /// <param name="id"></param>
 /// <returns></returns>
 public JsonResult GetClassNameList(int id)
 {
     list = client.GetYogaArtClassPageList(id);
     return(Json(list));
 }