public static V1WorkflowCollectionState OnRemoveV1Workflow(V1WorkflowCollectionState state, RemoveV1Workflow action)
        {
            var workflow = state.FirstOrDefault(w => w.Id == action.WorkflowId);

            if (workflow != null)
            {
                state.Remove(workflow);
            }
            return(state);
        }
 public static V1WorkflowCollectionState OnAddV1Workflow(V1WorkflowCollectionState state, AddV1Workflow action)
 {
     state.Add(action.Workflow);
     return(state);
 }
 public static V1WorkflowCollectionState OnGetWorkflowsFromApiSucceeded(V1WorkflowCollectionState state, SetV1WorkflowCollection action)
 {
     return(new(action.Workflows));
 }