Exemplo n.º 1
0
 /// <summary>
 /// Runs the template with the specified name.
 /// </summary>
 /// <typeparam name="T">The model type.</typeparam>
 /// <param name="model">The model.</param>
 /// <param name="name">The name of the template to run.</param>
 /// <returns>The result of the template.</returns>
 public static string Run <T>(T model, string name)
 {
     return(DefaultTemplateService.Run <T>(model, name));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Runs the template with the specified name.
 /// </summary>
 /// <param name="name">The name of the template to run.</param>
 /// <returns>The result of the template.</returns>
 public static string Run(string name)
 {
     return(DefaultTemplateService.Run(name));
 }