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