/// <summary> /// Unbinds form variable data into a model object. /// </summary> /// <param name="model">Object to unbind to</param> /// <param name="propertyExceptions">Properties to skip</param> /// <param name="formvarPrefixes">Form Variable prefixes to include. Prefix is stripped. (txtName maps to Name)</param> /// <returns></returns> public static List <BindingError> Unbind(object model, string propertyExceptions = null, string formvarPrefixes = null) { var errors = new List <BindingError>(); var binder = new FormVariableBinder(model, propertyExceptions); binder.Prefixes = formvarPrefixes; return(errors); }
/// <summary> /// Unbinds form variable data into a model object. /// </summary> /// <param name="model">Object to unbind to</param> /// <param name="propertyExceptions">Properties to skip</param> /// <param name="formvarPrefixes">Form Variable prefixes to include. Prefix is stripped. (txtName maps to Name)</param> /// <returns></returns> public static List<BindingError> Unbind(object model, string propertyExceptions = null, string formvarPrefixes = null) { var errors = new List<BindingError>(); var binder = new FormVariableBinder(model, propertyExceptions); binder.Prefixes = formvarPrefixes; return errors; }