Exemplo n.º 1
0
        public JsonResult PageList()
        {
            int currentPage = Convert.ToInt32(Request.Form["currentPage"]);
            int pageSize    = Convert.ToInt32(Request.Form["pageSize"]);
            int count       = _workFlowRepository.SelectCount();
            IEnumerable <WorkFlow> workFlows = _workFlowRepository.SelectByPage(currentPage, pageSize);

            return(Json(JsonReturn.Success(new { total = count, data = workFlows })));
        }
Exemplo n.º 2
0
 public IActionResult CreateFlow([FromBody] WorkFlow workFlow)
 {
     workFlow = _workFlowService.Create(workFlow);
     return(Json(JsonReturn.Success(workFlow.Id)));
 }