Beispiel #1
0
        public IActionResult Index()
        {
            var parseXML = SerializeXML <ProjectModel> .ReadFromXML();

            var projects = (from a in parseXML.
                            select new ProjectModel
            {
                ProjectID = a.ProjectID,
                ProjectNumber = a.ProjectNumber,
                AllSubmissions = (from b in a.AllSubmissions
                                  select new SubmissionModel
                {
                    SubmissionID = b.SubmissionID,
                    SubmissionNumber = b.SubmissionNumber,
                    SubmissionType = b.SubmissionType,
                    ProjectID = b.ProjectID
                }).ToList()
            }).ToList();

            return(View(projects));
        }