Exemplo n.º 1
0
        public async Task <IActionResult> ForAsync(string id)
        {
            var product = await _stripeService.GetProductByNameAsync(id);

            if (product != null)
            {
                return(RedirectToAction("Product", new { id = product.Id }));
            }
            else
            {
                return(RedirectToAction("Index"));
            }
        }