Ejemplo n.º 1
0
        public async Task <IActionResult> AddStudentToGroup(Guid groupId, Guid studentId)
        {
            if (!await _educationService.StudentAndGroupExists(groupId, studentId))
            {
                return(NotFound());
            }

            await _educationService.AddStudentToGroup(groupId, studentId);

            return(NoContent());
        }