Пример #1
0
        //TODO: wszystko co bierzmy z bazy

        public HomeworkDto GetHomeworkByIds(int idStudent, int idCourse)
        {
            //Pytam o prace domowa kursanta o id idStudent z kursu idCourse
            var homework = _homeworkRepoService.GetHomeworkByIds(idStudent, idCourse);
            //Mapuje homework na homewordDto
            var homeworkDto = _entityToDtoMapper.HomeworkModelToDto(homework);

            //Zwracam homeworkDto
            return(homeworkDto);
        }