//product details page public ActionResult Product(int productId) { if (_workContext.CurrentCustomer.IsGuest()) { return new HttpUnauthorizedResult(); } var product = _productService.GetProductById(productId);