public async Task <ActionResult <IEnumerable <AttendanceOfLectureResource> > > MarkAttendance(int lectureId, [FromBody] IEnumerable <int> studentIds)
        {
            await _lectureService.MarkAttendance(lectureId, studentIds);

            await _lectureService.CheckNumberOfStudentsLecturesMissed(lectureId, new EmailSenderService());

            var updatedLecture = await _lectureService.GetLectureWithStudentsById(lectureId);

            var attendance         = updatedLecture.StudentLectures;
            var attendanceResource = _mapper.Map <IEnumerable <StudentLecture>, IEnumerable <AttendanceOfLectureResource> >(attendance);

            return(Ok(attendanceResource));
        }