public static string BuildJsPrototype(this HtmlHelper helper, string targetName) { var modelType = helper.ViewData.Model.GetType(); var d = ModelToJavascript.Build(modelType, targetName); return(d); }
public static string BuildJsPrototype(this HtmlHelper helper, Type modelType) { var d = ModelToJavascript.Build(modelType); return(d); }