public static async Task CreateUserActivityAsync(UserActivityData activityData, IAdaptiveCard adaptiveCard) { var activity = await activityData.ToUserActivity(); activity.VisualElements.Content = adaptiveCard; await SaveAsync(activity); }
public static async Task CreateUserActivityAsync(UserActivityData activityData) { var activity = await activityData.ToUserActivity(); // Cleanup any content assigned earlier activity.VisualElements.Content = null; await SaveAsync(activity); }