CodeJewels.Service.Controllers.CodeJewelsController.SearchByCategory C# (CSharp) Метод

SearchByCategory() приватный Метод

private SearchByCategory ( int categoryId ) : IEnumerable
categoryId int
Результат IEnumerable
        public IEnumerable<CodeJewel> SearchByCategory(int categoryId)
        {
            var found = (from c in this.dbContext.CodeJewels
                         where c.CategoryId == categoryId
                         select c).ToList();

            return SerializeCodeJewel(found);
        }