Example #1
0
//tutaj

        //TODO Wszystko co leci do gory

        public StudentDto GetStudentFromDl(long pesel)
        {
            var studentRepositories = new StudentRepoService();
            var student             = studentRepositories.GetStudentByPesel(pesel);

            // var student = _studentRepo.GetStudentByPesel(pesel);
            return(EntityToDtoMapper.StudentEntityModelToDto(student));
        }
Example #2
0
        } //zmien dane personalne studenta

        public StudentDto GetStudentByPesel(long pesel)
        {
            Student    student            = new Student();
            StudentDto studentDto         = new StudentDto();
            var        studentRepoService = new StudentRepoService();

            student    = studentRepoService.GetStudentByPesel(pesel);                //znajdz studenta po peselu
            studentDto = Mappers.EntityToDtoMapper.StudentEntityModelToDto(student); //mapuj studenta na studentDto


            return(studentDto);
        }