public async Task <IActionResult> Index()
        {
            if (!await _authorizationService.AuthorizeAsync(User, Permissions.ManageDeploymentSettings))
            {
                return(Forbid());
            }

            IEnumerable <Deployment> deployments = null;

            try
            {
                deployments = await _deploymentService.GetDeploymentsAsync();
            }
            catch (Exception e)
            {
                _logger.LogError(e, "Could not get latest Vercel Deployments.");
            }

            var model = new VercelDeploymentsAdminIndexViewModel
            {
                InitializationStatus = _deploymentService.GetInitializationStatus(),
                Deployments          = deployments,
            };

            return(View(model));
        }