public String ListCategories() { var results = _enumWrapper.GetNames(typeof(MediaCategory)).Select(item => new MediaCategoryDto { Name = item, FolderName = String.Format("{0}\\", item), Category = (MediaCategory)_enumWrapper.GetEnumFromValue(item, typeof(MediaCategory)) }).ToList(); return(_jsonWrapper.SerializeObject(results)); }