public async Task <bool> AuthenticateUserAsync(AuthenticateAdminUserDto dto) { var adminUser = await _adminUserRepository.GetAdminUserByUsernameAsync(dto.Username); if (adminUser is null) { return(false); } return(Crypto.VerifyHashedPassword(adminUser.Password, dto.Password)); }