Beispiel #1
0
 public ClassRoom Get(string id)
 {
     using (FeedbackDatabaseEntities1 entities = new FeedbackDatabaseEntities1())
     {
         return(entities.ClassRooms.FirstOrDefault(e => e.Id == id));
     }
 }
Beispiel #2
0
 public IEnumerable <ClassRoom> Get()
 {
     using (FeedbackDatabaseEntities1 entities = new FeedbackDatabaseEntities1())
     {
         return(entities.ClassRooms.ToList());
     }
 }