Ejemplo n.º 1
0
        public IActionResult CheckIfParticipant(int id)
        {
            var userId         = User.GetUserId();
            var student        = _studentService.GetStudentByUserId(userId);
            var studentId      = student.Id;
            var wasParticipant = _internshipService.CheckIfStudentWasParticipant(id, studentId);

            return(Ok(new ParticipantViewModel()
            {
                WasParticipant = wasParticipant
            }));
        }