public async Task <IActionResult> Index(Guid flowStateId) { var transitions = await FlowReportManager .GetSourceTransitionsAsync(flowStateId); return(View("Index", transitions.Result)); }
public async Task <IActionResult> Create(Guid flowStateId) { var state = await FlowReportManager.GetStateByIdAsync(flowStateId); var states = await FlowReportManager.GetStatesByTypeIdAsync(state.Result.TypeId); ViewBag.States = states.Result; return(View("Create", new InitFlowTransitionModel() { SourceId = flowStateId, TypeId = state.Result.TypeId })); }
public async Task <IActionResult> Index(Guid flowTypeId) { var states = await FlowReportManager.GetStatesByTypeIdAsync(flowTypeId); return(View("Index", states.Result)); }
public async Task <IActionResult> Index() { var result = await FlowReportManager.GetTypesAsync(); return(View("Index", result.Result)); }