public async Task <IActionResult> OnGetLoadBpmnAsync(string processDefinitionId) { var bpmnModelXml = await tasksService.GetProcessModelXml(processDefinitionId); if (string.IsNullOrEmpty(bpmnModelXml)) { return(NotFound()); } return(Content(bpmnModelXml)); }