Skip to content

Instantly share code, notes, and snippets.

@simple17
Created November 16, 2018 08:38
Show Gist options
  • Save simple17/4cf9c83140edcb20279f6a274cfe5892 to your computer and use it in GitHub Desktop.
Save simple17/4cf9c83140edcb20279f6a274cfe5892 to your computer and use it in GitHub Desktop.
[Get Category] #episerver
var category = article.Category.Any() ? Category.Find(article.Category.First()).LocalizedDescription : string.Empty;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment