Beispiel #1
0
        public IEnumerable <Classroom> GetClassrooms(string id)
        {
            if (id == null)
            {
                throw new Exception("Null id");
            }
            var classrooms = _classroomRepository.GetClassrooms(id);

            return(classrooms);
        }
Beispiel #2
0
 public IEnumerable <ClassroomBlModel> GetClassrooms()
 {
     return(_classroomRepository.GetClassrooms().Select(c => c.GetBlModel()));
 }