mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-20 10:37:55 +08:00
form预览
This commit is contained in:
@@ -20,11 +20,23 @@ namespace OpenAuth.Mvc.Controllers
|
||||
return View();
|
||||
}
|
||||
|
||||
public ActionResult Builder()
|
||||
public ActionResult Preview()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 预览表单
|
||||
/// </summary>
|
||||
/// <param name="id">The identifier.</param>
|
||||
/// <returns>System.String.</returns>
|
||||
public string PreviewData(string id)
|
||||
{
|
||||
var form = App.FindSingle(id);
|
||||
|
||||
return FormUtil.GetHtml(form, "");
|
||||
}
|
||||
|
||||
//添加或修改
|
||||
[System.Web.Mvc.HttpPost]
|
||||
[ValidateInput(false)]
|
||||
|
Reference in New Issue
Block a user