Esempio n. 1
0
 public IEnumerable <Faculty> GetDetailsById(int id)
 {
     if (db != null)
     {
         return(db.Set <Faculty>().Where(p => p.Id == id));
     }
     return(null);
 }
Esempio n. 2
0
 public IEnumerable <Participant> GetDetails()
 {
     if (db != null)
     {
         return(db.Set <Participant>().ToList());
     }
     return(null);
 }
Esempio n. 3
0
 public Batch GetBatchDetails(int id)
 {
     if (db != null)
     {
         return(db.Set <Batch>().FirstOrDefault(c => c.BatchId == id));
     }
     return(null);
 }