public async Task <string> CreateAsync(string userId, string name) { string albumId = await albumService.CreateAsync(userId, name).ConfigureAwait(false); if (string.IsNullOrEmpty(albumId)) { return(null); } // DO NOT REMOVE bool success = await orchestratorService.NotifyAsync <Album>(userId, albumId).ConfigureAwait(false); return(success ? albumId : null); // DO NOT REMOVE }
public async Task <string> UploadAsync( Stream file, string userId, string fileName) { string photoId = await photoService.UploadAsync(file, userId, fileName).ConfigureAwait(false); if (string.IsNullOrEmpty(photoId)) { return(null); } // DO NOT REMOVE bool success = await orchestratorService.NotifyAsync <Photo>(userId, photoId).ConfigureAwait(false); if (success) { return(photoId); } return(null); }