RazorHelper.Run Method

Namespace:
Weavy.Core.Helpers
Assembly:
Weavy.Core.dll

Run(String, String, Object, Object)

Runs a Razor template using the specified layout, template and model.

public static string Run(string layout, string template, object model, object viewbag = null)

Parameters

layout
System.String
template
System.String
model
System.Object
viewbag
System.Object

Returns

System.String

Returns the result of executing the specified razor template.