/// <summary> /// 预览页面 /// </summary> /// <param name="id"></param> /// <returns></returns> public ActionResult Preview(int id) { if (id <= 0) { return(Content("id错误")); } Models.WebApp app = WebAppService.GetAppById(id); return(View(app)); }
/// <summary> /// 根据id获取App /// </summary> /// <param name="id"></param> /// <returns></returns> public ActionResult GetAppById(int id) { var app = WebAppService.GetAppById(id); return(Json(app)); }