public async Task <IActionResult> RegisterStudentAsync([FromForm] RegisterStudentViewModel studentView)
        {
            var student = StudentMapper.ToActualObjectNoId(studentView);
            RegisterViewModel registration = new RegisterViewModel
            {
                Email           = studentView.Email,
                Password        = studentView.Password,
                ConfirmPassword = studentView.ConfirmPassword
            };

            IdentityResult result = await _userManager.CreateAsync(new ApplicationUser { Email = registration.Email, UserName = registration.Email }, registration.Password);

            if (result.Succeeded)
            {
                var studentUserManager = await _userManager.FindByEmailAsync(registration.Email);

                var roleStudent = await _roleManager.FindByNameAsync("Student");

                await _userManager.AddToRoleAsync(studentUserManager, roleStudent.Name);

                student.IdUser = studentUserManager.Id;
                _studentService.AddStudent(student);

                if (studentView.Cv != null)
                {
                    _studentService.UploadCV(student.IdUser, studentView.Cv);
                }

                return(Ok());
            }
            return(BadRequest());
        }