public async Task <IdentityResult> RegisterAdmin(RegisterUserDTO user) { Admin userToInsert = UserToUserDTOConverters.RegisterUserDTOtoAdmin(user); logger.Info("Registering admin."); return(await db.AuthRepository.RegisterAdmin(userToInsert, user.Password)); }