Ejemplo n.º 1
0
 public ActionResult SetNext(string taskId, string processCode, int?nextId)
 {
     try
     {
         _workFlowService.SetNextByProcessCode(processCode, nextId);
         return(RedirectToAction("Index", new { taskId = taskId }).WithMessage(this, "Done.", MessageType.Success));
     }
     catch (System.Exception ex)
     {
         return(RedirectToAction("Index", new { taskId = taskId }).WithMessage(this, string.Format("{0}", ex.Message), MessageType.Danger));
     }
 }