コード例 #1
0
        public async Task <IdentityResult> RegisterAdmin(RegisterUserDTO user)
        {
            Admin userToInsert = UserToUserDTOConverters.RegisterUserDTOtoAdmin(user);

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