Click or drag to resize

RazorHelperCompileExecute Method

Compile a Razor script (if not already cached) and execute it with the given model. Returns the result of the script execution.

Namespace: Seal.Helpers
Assembly: SealLibrary (in SealLibrary.dll) Version: 10.2.0.0+da7797057e6d5ef3b02633ee3e36991921c726cb
Syntax
C#
public static string CompileExecute(
	string script,
	Object model,
	string key = null,
	DateTime? lastModification = null
)

Parameters

script  String
 
model  Object
 
key  String  (Optional)
 
lastModification  NullableDateTime  (Optional)
 

Return Value

String
See Also