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

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

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

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

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

            return(query.Execute(Database));
        }