public void DeleteShortLink(string shortUrl, IdentityUser user) { var link = shortLinkRepository.GetShortLinkByShortUrl(shortUrl); if (link.IdentityUserId == user.Id) { shortLinkRepository.DeleteShortLink(link); } }
public bool DeleteShortLink(long linkId) { bool success = _repo.DeleteShortLink(linkId); return(success); }