public async Task <BookmarkDto> UpdateAsync(Guid id, CreateUpdateBookmarkDto input) { var bookmark = await _bookmarkRepository.GetAsync(id); //await AuthorizationService.CheckAsync(post, CommonOperations.Update); bookmark.Title = input.Title; bookmark.LinkUrl = input.LinkUrl; bookmark.Content = input.Content; bookmark.Summary = input.Summary; bookmark = await _bookmarkRepository.UpdateAsync(bookmark); var tagList = SplitTags(input.Tags); await SaveTags(tagList, bookmark); return(ObjectMapper.Map <Bookmark, BookmarkDto>(bookmark)); }