public static RawString Render(this IEnumerable <PropertyVm> properties, RazorTemplateHtmlHelper html)
        {
            var sb = new StringBuilder();

            foreach (var propertyVm in properties)
            {
                sb.AppendLine(propertyVm.Render(html).ToString());
            }
            return(new RawString(sb.ToString()));
        }
        public static string ToHtmlString(IEnumerable <PropertyVm> properties, RazorTemplateHtmlHelper html)
        {
            var sb = new StringBuilder();

            foreach (var propertyVm in properties)
            {
                sb.AppendLine(html.Partial("FormFactory/Form.Property", propertyVm).ToString());
            }
            var htmlString = (sb.ToString());

            return(htmlString);
        }
 public static RawString Render(this PropertyVm propertyVm, RazorTemplateHtmlHelper html)
 {
     return(html.Partial("FormFactory/Form.Property", propertyVm));
 }
Beispiel #4
0
 public static RawString Render(this FormVm formVm, RazorTemplateHtmlHelper html)
 {
     return(html.Partial("FormFactory/Form", formVm));
 }