Пример #1
0
 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);
 }