public ActionResult ProductDetails(string id) { var product = _productApi.GetProductDetail(Sanitizer.GetSafeHtmlFragment(id)); if (product.Result != null) { product.Result.BrandSlug = _brandApi.GetBrandDetails(Sanitizer.GetSafeHtmlFragment(product.Result.BrandRecordId)).Result?.Link; } _headTagbuilder.AddDataLayer("product", product.Result); return(JsonSuccess(product.Result, JsonRequestBehavior.AllowGet)); }