public async Task <ActionResult <IEnumerable <HomeworkWithLectureResource> > > AddHomeworkToLecture(int lectureId, [FromBody] string task)
        {
            await _lectureService.AddHomeworkToLecture(lectureId, task);

            var updatedLecture = await _lectureService.GetLectureWithHomeworksById(lectureId);

            var homeworksOfUpdatedLectureResource = _mapper.Map <IEnumerable <Homework>, IEnumerable <HomeworkWithLectureResource> >(updatedLecture.Homeworks);

            return(Ok(homeworksOfUpdatedLectureResource));
        }