コード例 #1
0
ファイル: FacultyService.cs プロジェクト: YugandharGT/Wpf
 public IEnumerable <Faculty> GetDetailsById(int id)
 {
     if (db != null)
     {
         return(db.Set <Faculty>().Where(p => p.Id == id));
     }
     return(null);
 }
コード例 #2
0
 public IEnumerable <Participant> GetDetails()
 {
     if (db != null)
     {
         return(db.Set <Participant>().ToList());
     }
     return(null);
 }
コード例 #3
0
 public Batch GetBatchDetails(int id)
 {
     if (db != null)
     {
         return(db.Set <Batch>().FirstOrDefault(c => c.BatchId == id));
     }
     return(null);
 }