public ActionResult Delete(int processId, int taskId) { try { string result = _workFlowService.Delete(processId); return(RedirectToAction("Index", new { taskId = taskId }).WithMessage(this, result, MessageType.Success)); } catch (System.Exception ex) { return(RedirectToAction("Index", new { taskId = taskId }).WithMessage(this, string.Format("{0}", ex.Message), MessageType.Danger)); } }