public async Task SaveBookmark(SaveBookmarkRequest request) { var storageUrl = await _blobProvider.UploadFile(Constants.ContainerName, request.FilePath); if (!string.IsNullOrEmpty(storageUrl)) { var result = await _postService.AddPostAsync(new AddPostRequest() { Url = request.Url, BlobUrl = storageUrl }); if (result.IsSuccess) { await _bookmarkService.AddBookmarkAsync(new AddBookmarkRequest() { UserId = request.UserId, PostId = result.Post.Id }); await _capPublisher.PublishAsync(Constants.EmailQueue, new SendEmailRequest() { PostId = result.Post.Id, UserId = request.UserId }); } } }