Changing Count for Any

This commit is contained in:
Nicholas Mayne
2015-10-18 20:43:54 +01:00
parent 98ae7172ff
commit 452c03fa6f

View File

@@ -49,7 +49,7 @@ namespace Orchard.Setup.Controllers {
var recipes = _setupService.Recipes().ToList();
string recipeDescription = null;
if (recipes.Count > 0) {
if (recipes.Any()) {
recipeDescription = recipes[0].Description;
}