private async Task <WorkflowsDto> InvokeCommandAsync(ICommand command)
        {
            var context = await CommandBus.PublishAsync(command);

            var result   = context.Result <IAppEntity>();
            var response = await WorkflowsDto.FromAppAsync(workflowsValidator, result, this);

            return(response);
        }
        public IActionResult GetWorkflows(string app)
        {
            var response = Deferred.AsyncResponse(() =>
            {
                return(WorkflowsDto.FromAppAsync(workflowsValidator, App, this));
            });

            Response.Headers[HeaderNames.ETag] = App.ToEtag();

            return(Ok(response));
        }
 private async Task <WorkflowsDto> GetResponse(IAppEntity result)
 {
     return(await WorkflowsDto.FromAppAsync(workflowsValidator, result, Resources));
 }