public async Task Delete(EntityDto <Guid> input) { var tags = await GetTagsOfBlog(input.Id); await _tagManager.DecreaseUsageCountOfTagsAsync(tags.Select(t => t.Id).ToList()); await _blogManager.DeleteAsync(input.Id); }
public async Task Delete(DeleteBlogInput input) { // Determine user is the author of the blog or not (var res, var blog) = await IsOwner(AbpSession.UserId, input.Id); if (!res) { return; } ObjectMapper.Map(input, blog); await _blogManager.DeleteAsync(blog); }