public async Task <IActionResult> GetFeatureById(Guid organizationId, Guid projectId, Guid featureId) { var organization = await _organizationQueryService.GetOrganizationById(organizationId); if (organization == null) { return(this.NotFound()); } var project = await _projectQueryService.GetProjectById(organizationId, projectId); if (project == null) { return(this.NotFound()); } var feature = await _projectFeatureQueryService.GetProjectFeatureById(organizationId, projectId, featureId); if (feature == null) { return(this.NotFound()); } var services = await _projectFeatureServiceQueryService.GetProjectFeatureServices(organizationId, projectId, featureId); var model = new { organization = organization, project = project, feature = feature, services = services, }; return(this.Ok(model)); }
public async Task <IActionResult> GetProjectFeatureServices(Guid organizationId, Guid projectId, Guid featureId) { var featureServices = await _projectFeatureServiceQueryService.GetProjectFeatureServices(organizationId, projectId, featureId); if (_domainManagerService.HasNotFounds()) { return(this.NotFound(_domainManagerService.GetNotFounds())); } return(this.Ok(featureServices)); }