Beispiel #1
0
        public IEnumerable <ViewStudentDto> Get()
        {
            IList <ViewStudentDto> list = new List <ViewStudentDto>();

            list.Add(new ViewStudentDto
            {
                StudentId    = StudentId.New(),
                Name         = "Boris",
                WhenEnrolled = new DateTime(2018, 08, 30)
            });

            list.Add(new ViewStudentDto
            {
                StudentId    = StudentId.New(),
                Name         = "Katharina",
                WhenEnrolled = new DateTime(2019, 09, 3)
            });

            list.Add(new ViewStudentDto
            {
                StudentId    = StudentId.New(),
                Name         = "Erika",
                WhenEnrolled = new DateTime(2018, 08, 28)
            });

            list.Add(new ViewStudentDto
            {
                StudentId    = StudentId.New(),
                Name         = "Sergei",
                WhenEnrolled = new DateTime(2019, 10, 1)
            });

            return(list);
        }