コード例 #1
0
 public Product GetById(int id)
 {
     return(_products.FirstOrDefault(p => p.id == id));
 }
コード例 #2
0
ファイル: GenreService.cs プロジェクト: phGama/CDSL
 public DAL.Genres Find(int id)
 {
     return(genres.FirstOrDefault(x => x.Id == id));
 }
コード例 #3
0
 public TEntity Obter(Expression <Func <TEntity, bool> > filter)
 {
     return(_context.FirstOrDefault(filter));
 }