Exemple #1
0
 public XmlDocumentRoot CreateXmlDocumentRoot(List <StudentXml> studentList)
 {
     return(new XmlDocumentRoot
     {
         Students = studentList, ActiveStudies = _studiesService.GetStudiesTypeAndCount(studentList)
     });
 }
Exemple #2
0
 public DocumentJson CreateJsonDocumentRoot(List <StudentJson> studentList)
 {
     return(new DocumentJson
     {
         University = new UniversityJson
         {
             Students = studentList, ActiveStudies = _studiesService.GetStudiesTypeAndCount(studentList)
         }
     });
 }