BinaryStudio.TaskManager.Logic.Core.NewsRepository.GetNewsCount C# (CSharp) Метод

GetNewsCount() публичный Метод

public GetNewsCount ( int userId ) : int
userId int
Результат int
        public int GetNewsCount(int userId)
        {
            List<News> news = this.dataBaseContext.News.Where(x => x.UserId == userId && x.IsRead == false).ToList();
            int count = news.Count;
            return count;
        }