mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-05-10 23:58:02 +08:00
46 lines
1013 B
C#
46 lines
1013 B
C#
![]() |
using System;
|
|||
|
using System.Web.Mvc;
|
|||
|
using Infrastructure;
|
|||
|
using OpenAuth.App;
|
|||
|
|
|||
|
namespace OpenAuth.Mvc.Controllers
|
|||
|
{
|
|||
|
public class WorkflowSchemasController : BaseController
|
|||
|
{
|
|||
|
private WorkflowSchemasManagerApp _app;
|
|||
|
|
|||
|
public WorkflowSchemasController()
|
|||
|
{
|
|||
|
_app = AutofacExt.GetFromFac<WorkflowSchemasManagerApp>();
|
|||
|
}
|
|||
|
public ActionResult Index()
|
|||
|
{
|
|||
|
return View();
|
|||
|
}
|
|||
|
|
|||
|
public string Load(int pageCurrent = 1, int pageSize = 30)
|
|||
|
{
|
|||
|
return JsonHelper.Instance.Serialize(_app.Load(pageCurrent, pageSize));
|
|||
|
}
|
|||
|
|
|||
|
[HttpPost]
|
|||
|
public string Del(string code)
|
|||
|
{
|
|||
|
try
|
|||
|
{
|
|||
|
_app.Del(code);
|
|||
|
}
|
|||
|
catch (Exception e)
|
|||
|
{
|
|||
|
BjuiResponse.statusCode = "300";
|
|||
|
BjuiResponse.message = e.Message;
|
|||
|
}
|
|||
|
|
|||
|
return JsonHelper.Instance.Serialize(BjuiResponse);
|
|||
|
}
|
|||
|
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
|