protected override async Task <IEnumerable <object> > Main() { var widgets = new List <Widget>(); var transactions = await stripeService.GetListOfTransactions(); widgets.Add(new Widget("Total Amount") { Content = new TextContent() { Text = transactions.Sum(t => t.TotalAmount).ToString("C"), FontSize = "30px", HorizontalAlign = TextHorizontalAlign.Center, VerticalAlign = TextVerticalAlign.Middle, WidgetHeight = "200px" }, Column = 3 }); widgets.Add(new Widget("Payment History") { Content = new TableContent() { Content = transactions }, Column = 12 }); return(widgets); }