示例#1
0
        public void DeleteShortLink(string shortUrl, IdentityUser user)
        {
            var link = shortLinkRepository.GetShortLinkByShortUrl(shortUrl);

            if (link.IdentityUserId == user.Id)
            {
                shortLinkRepository.DeleteShortLink(link);
            }
        }
示例#2
0
        public bool DeleteShortLink(long linkId)
        {
            bool success = _repo.DeleteShortLink(linkId);

            return(success);
        }