Ejemplo n.º 1
0
        //
        public ViewData <Step> GetStepsByWorkflowId(Workflow workflow)
        {
            ViewData <Step> viewData = new ViewData <Step>();

            if (workflow.Id == null)
            {
                viewData.StatusCode = FAIL;
                return(viewData);
            }
            List <Step> steps = stepRepositories.GetStepsByWorkflowId(workflow.Id);

            viewData.StatusCode = SUCCESS;
            viewData.SetData(steps);
            return(viewData);
        }
Ejemplo n.º 2
0
        public StepView GetStepsByWorkflowId(Step step)
        {
            StepView stepView = new StepView();

            if (step.WorkflowID == null)
            {
                stepView.StatusCode = FAILTURE;
            }
            else
            {
                List <Step> list = new List <Step>();
                list = stepRepositories.GetStepsByWorkflowId(step.Id);
                stepView.StatusCode = SUCCESS;
                stepView.SetData(list);
            }
            //throw new NotImplementedException();
            return(stepView);
        }