Ejemplo n.º 1
0
        public static IWriter2 <FormGroup, AnyContent> FormGroupFor <TModel, TProperty>(this IAnyContentMarker <TModel> contentHelper, Expression <Func <TModel, TProperty> > expression)
        {
            var fg = contentHelper.Context.CreateWriter <FormGroup, AnyContent>();

            return(ControlContextHolderExtensions.ControlContext(fg, contentHelper.Context.GetControlContext(expression)));
        }
Ejemplo n.º 2
0
 public static IWriter <TControl> ControlFor <TModel, TProperty, TControl>(this IAnyContentMarker <TModel> contentHelper, Expression <Func <TModel, TProperty> > expression, IWriter <TControl> control)
     where TControl : IFormControl
 {
     return(ControlContextHolderExtensions.ControlContext(control, contentHelper.Context.GetControlContext(expression)));
 }