Default Template

TemplatedAdaptiveCard can accept the Schema as a property but it can also automatically select the template. This feature is called Default Template. The default template is set in the application's ConfigureServices and it's based on the model's type:


If default template is defined, TemplatedAdaptiveCard can be used without schema:

<TemplatedAdaptiveCard Model="customer"></TemplatedAdaptiveCard>

    Customer customer = new Customer() { FirstName = "Templated", LastName = "Customer" };