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