public IActionResult RedirectToCorrectState(string org, string service, int instanceId) { RequestContext requestContext = RequestHelper.GetRequestContext(Request.Query, 0); requestContext.UserContext = _userHelper.GetUserContext(HttpContext); ServiceState currentState = _workflowSI.GetCurrentState(instanceId, org, service, requestContext.UserContext.ReporteeId); string nextUrl = _workflowSI.GetUrlForCurrentState(instanceId, org, service, currentState.State); return(Redirect(nextUrl)); }
public IActionResult GetCurrentState(string org, string service, int instanceId, int reporteeId) { return(new ObjectResult(_workflowSI.GetCurrentState(instanceId, org, service, reporteeId))); }