Exemplo n.º 1
0
        public int GetVisitedCount(DateTime fromDate, DateTime toDate)
        {
            IQuery <int> query = QueryFactory.CreateShortUrlVisitedCountByDates(fromDate, toDate);

            return(query.Execute(Database));
        }
Exemplo n.º 2
0
        public ShortUrl GetByAliasName(string aliasName)
        {
            IQuery <ShortUrl> query = QueryFactory.CreateShortUrlByAlias(aliasName);

            return(query.Execute(Database));
        }
Exemplo n.º 3
0
        public ShortUrl GetByHash(string hash)
        {
            IQuery <ShortUrl> query = QueryFactory.CreateShortUrlByHash(hash);

            return(query.Execute(Database));
        }
Exemplo n.º 4
0
        public override ShortUrl GetById(long id)
        {
            IQuery <ShortUrl> query = QueryFactory.CreateShortUrlById(id);

            return(query.Execute(Database));
        }
Exemplo n.º 5
0
 public bool IsMatching(string url)
 {
     return(QueryFactory.CreateBannedDomainMatching(url).Execute(Database));
 }
Exemplo n.º 6
0
        public int Count(string aliasName)
        {
            IQuery <int> query = QueryFactory.CreateVisitCountByAlias(aliasName);

            return(query.Execute(Database));
        }