protected void PopulateCommonData(EntryContentBase content, IMarket currentMarket, CustomerContact currentContact) { Code = content.Code; ContentLink = content.ContentLink; DisplayName = content.DisplayName ?? content.Name; ProductUrl = _urlResolver.GetUrl(ContentLink); Description = content.GetPropertyValue("Description"); Overview = content.GetPropertyValue("Overview"); AverageRating = content.GetPropertyValue <double>("AverageRating"); InStock = content.GetStock() > 0; ContentType = content.GetType().Name; if (string.IsNullOrEmpty(Overview)) { Overview = Description; } CurrentContactIsCustomerClubMember = currentContact.IsCustomerClubMember(); }
protected void PopulateCommonData(EntryContentBase content, IMarket currentMarket, CustomerContact currentContact) { Code = content.Code; ContentLink = content.ContentLink; DisplayName = content.DisplayName ?? content.Name; ProductUrl = _urlResolver.GetUrl(ContentLink); Description = content.GetPropertyValue("Description"); Overview = content.GetPropertyValue("Overview"); AverageRating = content.GetPropertyValue<double>("AverageRating"); InStock = content.GetStock() > 0; ContentType = content.GetType().Name; if (string.IsNullOrEmpty(Overview)) Overview = Description; CurrentContactIsCustomerClubMember = currentContact.IsCustomerClubMember(); }