Пример #1
0
        public async Task <IdentityResult> RegisterTeacher(RegisterUserDTO user)
        {
            Teacher userToInsert = UserToUserDTOConverters.RegisterUserDTOtoTeacher(user);

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