BinaryStudio.TaskManager.Logic.Core.NewsRepository.GetNewsById C# (CSharp) Method

GetNewsById() public method

public GetNewsById ( int newsId ) : News
newsId int
return BinaryStudio.TaskManager.Logic.Domain.News
        public News GetNewsById(int newsId)
        {
            return this.dataBaseContext.News.ToList().SingleOrDefault(x => x.Id == newsId);
        }