Esempio n. 1
0
 public ICollection <Subject> GetSubjectsFromSpecialization(string specializationName)
 {
     try
     {
         var specialization = SpecializationsRepository.GetList().Where(x => x.Name == specializationName).First();
         return(SubjectsRepository.GetList(specialization));
     }
     catch (Exception)
     {
         return(new List <Subject>());
     }
 }
Esempio n. 2
0
 public ICollection <Material> GetMaterialsFromSubject(string subjectName)
 {
     try
     {
         var subject = SubjectsRepository.GetList().Where(x => x.Name == subjectName).First();
         return(MaterialsRepository.GetList(subject));
     }
     catch (Exception)
     {
         return(new List <Material>());
     }
 }