BinaryStudio.TaskManager.Logic.Core.NewsRepository.GetNewsById C# (CSharp) Méthode

GetNewsById() public méthode

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