Пример #1
0
 public Entities.News Get(int Id)
 {
     return(_newsDal.Get(Id));
 }
 public News GetWithId(int id)
 {
     return(_context.Get(n => n.Id == id && !n.IsDeleted));
 }
Пример #3
0
 public News GetNewsById(int?id)
 {
     return(_newsDal.Get(x => x.NewsID == id));
 }