public ShortUrlCosmosDocumentBase(ShortUrlCosmosDocumentBase other)
 {
     Id         = other.Id;
     LongUrl    = other.LongUrl;
     Expiration = other.Expiration;
     Tenant     = other.Tenant;
     ttl        = other.ttl;
 }
        public static ShortUrl ToShortUrl(this ShortUrlCosmosDocumentBase document)
        {
            if (document == null)
            {
                return(null);
            }
            var shortUrl = new ShortUrl
            {
                Expiration = document.Expiration,
                Id         = document.Id,
                Tenant     = document.Tenant,
                LongUrl    = document.LongUrl
            };

            return(shortUrl);
        }
 public ShortUrlCosmosDocument(ShortUrlCosmosDocumentBase other) : base(other)
 {
 }