Пример #1
0
        public async Task <IdentityResult> RegisterStudent(RegisterStudentDTO user)
        {
            Student userToInsert = UserToUserDTOConverters.RegisterStudentDTOtoStudent(user);

            logger.Info("Registering student.");
            return(await db.AuthRepository.RegisterStudent(userToInsert, user.Password));
        }