public bool MatchesCredentials(LoginRequest request)
        {
            var hashed = _hash.CreateHash(request.Password);

            return(_repository.Query <T>().SingleOrDefault(x => x.UserName == request.UserName && x.Password == hashed) != null);
        }
        public bool MatchesCredentials(LoginRequest request)
        {
            var hashed = _hash.CreateHash(request.Password);

            return(_repository.FindWhere <T>(x => x.UserName == request.UserName && x.Password == hashed) != null);
        }