mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-19 18:22:11 +08:00
新增设计文档
This commit is contained in:
@@ -47,7 +47,7 @@ namespace OpenAuth.Mvc.Controllers
|
||||
{
|
||||
try
|
||||
{
|
||||
App.CreateInstance(obj, null);
|
||||
App.CreateInstance(obj);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
@@ -37,6 +37,24 @@ namespace OpenAuth.Mvc.Controllers
|
||||
return FormUtil.GetHtml(form, "");
|
||||
}
|
||||
|
||||
public string Get(string id)
|
||||
{
|
||||
try
|
||||
{
|
||||
var result = new Response<Form>
|
||||
{
|
||||
Result = App.FindSingle(id)
|
||||
};
|
||||
return JsonHelper.Instance.Serialize(result);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Result.Code = 500;
|
||||
Result.Message = ex.Message;
|
||||
return JsonHelper.Instance.Serialize(Result);
|
||||
}
|
||||
}
|
||||
|
||||
//添加或修改
|
||||
[System.Web.Mvc.HttpPost]
|
||||
[ValidateInput(false)]
|
||||
|
Reference in New Issue
Block a user