예제 #1
0
        public static string BuildJsPrototype(this HtmlHelper helper, string targetName)
        {
            var modelType = helper.ViewData.Model.GetType();
            var d         = ModelToJavascript.Build(modelType, targetName);

            return(d);
        }
예제 #2
0
        public static string BuildJsPrototype(this HtmlHelper helper, Type modelType)
        {
            var d = ModelToJavascript.Build(modelType);

            return(d);
        }