public async Task <IActionResult> CreateShopifyOAuth([FromBody] ShopifyOAuthResponse response, [FromServices] ShopifyOAuth oauth)
        {
            if (!oauth.VerifyOAuthRequest(response))
            {
                return(NotFound());
            }

            var username = String.Empty;

            if (HttpContext.User.Identity.IsAuthenticated)
            {
                username = HttpContext.User.Identity.Name;
            }

            var account = await dbAccounts.GetOneByUsername(username);

            if (!await shopify.AddShopifyIntegration(account, response, oauth))
            {
                return(NotFound());
            }

            return(Ok());
        }
        public IActionResult GetShopifyOAuth(string shop, string redirect, [FromServices] ShopifyOAuth oauth)
        {
            var request = oauth.GetOAuthRequest(shop, redirect);

            return(Json(request));
        }