public Guid Create(MyLinkDTO model)
        {
            var entity = new MyLink
            {
                Id          = Guid.NewGuid(),
                UserId      = model.UserId,
                ContentId   = model.ContentId,
                QueryString = model.QueryString.Trim('?'),
                CreatedDate = DateTime.Now,
                ActivityId  = model.ActivityId
            };

            _myLinksRepository.Add(entity);
            return(entity.Id);
        }
        public MyLink Get(MyLinkDTO model)
        {
            var links = _myLinksRepository.FindAll(link => link.UserId == model.UserId && link.ContentId == model.ContentId);

            return(links.SingleOrDefault(l => IsQueryStringEqual(model.QueryString, l.QueryString)));
        }