public async Task <IActionResult> DissociateTagFromLink(Guid linkId, Guid tagId) { var linkEntity = await _linksRepo.GetLinkAsync(linkId); var tagEntity = await _tagsRepo.GetTagAsync(tagId); if (linkEntity == null || tagEntity == null) { return(NotFound()); } _linksRepo.DissociateTagFromLink(linkEntity, tagEntity); await _linksRepo.SaveChangesAsync(); return(NoContent()); }