public async Task <IActionResult> CreateProposalManagerTeam(string name) { var requestId = Guid.NewGuid().ToString(); _logger.LogInformation($"RequestID:{requestId} SetupController_CreateSiteRoles called."); // Check to see if setup is enabled and if not respond with bad request var checkSetupState = await CheckSetupState(); if (checkSetupState != null) { return(BadRequest(checkSetupState)); } try { await _setupService.CreateProposalManagerTeamAsync(name, requestId); } catch (Exception ex) { _logger.LogError($"RequestID:{requestId} SetupController_CreateSiteRoles error: {ex.Message}"); var errorResponse = JsonErrorResponse.BadRequest($"CreateSiteRoles error: {ex.Message}", requestId); return(BadRequest(errorResponse)); } return(NoContent()); }