public async Task PatchProject(Guid organizationId, Guid projectId, ProjectPatchRp resource)
        {
            var project = await _projectRepository.GetProjectById(organizationId, projectId);

            if (project == null)
            {
                await _domainManagerService.AddNotFound($"The project with id {projectId} does not exists.");

                return;
            }

            if (!string.IsNullOrEmpty(resource.ProjectVSTSFakeId))
            {
                project.ProjectVSTSFakeId = resource.ProjectVSTSFakeId;
            }

            if (!string.IsNullOrEmpty(resource.ProjectVSTSFakeName))
            {
                project.ProjectVSTSFakeName = resource.ProjectVSTSFakeName;
            }

            if (!string.IsNullOrEmpty(resource.ProjectExternalId))
            {
                project.ProjectExternalId = resource.ProjectExternalId;
            }

            if (!string.IsNullOrEmpty(resource.ProjectExternalName))
            {
                project.ProjectExternalName = resource.ProjectExternalName;
            }

            if (!string.IsNullOrEmpty(resource.ProjectExternalEndpointId))
            {
                project.ProjectExternalEndpointId = resource.ProjectExternalEndpointId;
            }

            if (!string.IsNullOrEmpty(resource.ProjectExternalGitEndpoint))
            {
                project.ProjectExternalGitEndpoint = resource.ProjectExternalGitEndpoint;
            }

            _projectRepository.Update(project);

            await _projectRepository.SaveChanges();
        }
        public async Task <IActionResult> PatchProject(Guid organizationId, Guid projectId, [FromBody] ProjectPatchRp projectRp)
        {
            if (!ModelState.IsValid)
            {
                return(this.BadRequest(ModelState));
            }

            await _internalProjectService.PatchProject(organizationId, projectId, projectRp);

            if (_domainManagerService.HasNotFounds())
            {
                return(this.NotFound(_domainManagerService.GetNotFounds()));
            }

            if (_domainManagerService.HasConflicts())
            {
                return(this.Conflict(_domainManagerService.GetConflicts()));
            }

            return(this.Ok());
        }