public async Task <IActionResult> OnGet(
            [FromServices] GetCart getCart,
            [FromServices] IWebHostEnvironment env)
        {
            var userId = User.GetUserId();
            var cart   = await getCart.ById(userId);

            if (cart.Products.Count <= 0)
            {
                return(RedirectToPage("/Index"));
            }

            Form = new CheckoutForm();

            if (env.IsDevelopment())
            {
                Form.Name     = "test";
                Form.Email    = "*****@*****.**";
                Form.Phone    = "7845556789";
                Form.Address1 = "Test";
                Form.Address2 = "";
                Form.City     = "City";
                Form.Country  = "Country";
                Form.PostCode = "QQ1 2RR";
                Form.State    = "";
            }
            else if (cart.DeliveryInformationComplete)
            {
                Form.Name     = cart.Name;
                Form.Email    = cart.Email;
                Form.Phone    = cart.Phone;
                Form.Address1 = cart.Address1;
                Form.Address2 = cart.Address2;
                Form.City     = cart.City;
                Form.Country  = cart.Country;
                Form.PostCode = cart.PostCode;
                Form.State    = cart.State;
            }

            return(Page());
        }