private HtmlTag CreateTag() { var type = _FormModel.GetType(); var properties = ScaffoldedView.GetScaffoldedProperties(type) .Select(p => TemplateHelpers.EditFieldFor(type, _FormModel, p)); return(Tags.Form .Nest(properties.ToArray()) .Nest(SaveOrCancelConvention.SaveOrCancel())); }
public static HtmlTag SubmitOrCancel(string submitText) { return(SaveOrCancelConvention.SubmitOrCancel(submitText)); }
public static HtmlTag SaveOrCancel() { return(SaveOrCancelConvention.SaveOrCancel()); }