// Initial HomePage
        public async Task <IActionResult> Index(string code)
        {
            if (string.IsNullOrEmpty(code))
            {
                throw new ArgumentException("code must be present!");
            }

            AuthTokenProperties tokenInformation = await MsaAuthUtils.Instance.ExchangeCodeForAccessToken(code);

            CookieUtils.StoreInCookie(tokenInformation, Response);

            // Redirect to API sample page
            return(Redirect(ControllerRoutes.SampleApisPage));
        }