public static CreateCaseWithProjectResponse CreateCase(ServiceHelper serviceHelper, CaseInfo caseInfo, ProjectInfo projectInfo)
        {
            CreateProjectOKResponse createProjectOKResponse = null;

            if (caseInfo.CreateProject)
            {
                createProjectOKResponse = CreateProject(serviceHelper, projectInfo);

                caseInfo.Project = createProjectOKResponse.ProjectNumber;
            }

            CreateCaseArgsParameter createCaseArgsParameter = new CreateCaseArgsParameter()
            {
                Title   = caseInfo.Title,
                Project = caseInfo.Project
            };

            CreateCaseOKResponse createCaseOKResponse = serviceHelper.CaseService.CreateCase(new CreateCaseArgs(createCaseArgsParameter));

            CreateCaseWithProjectResponse createCaseWithProjectResponse = new CreateCaseWithProjectResponse()
            {
                createCaseOKResponse    = createCaseOKResponse,
                createProjectOKResponse = createProjectOKResponse ?? new CreateProjectOKResponse()
            };

            return(createCaseWithProjectResponse);
        }
        public static CreateProjectOKResponse CreateProject(ServiceHelper serviceHelper, ProjectInfo projectInfo)
        {
            CreateProjectArgsParameter createProjectArgsParameter = new CreateProjectArgsParameter()
            {
                Title = projectInfo.Title,
            };

            CreateProjectOKResponse createProjectOKResponse = serviceHelper.ProjectService.CreateProject(
                new CreateProjectArgs(createProjectArgsParameter));

            return(createProjectOKResponse);
        }