// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Linq.Expressions; namespace Microsoft.AspNet.Mvc.Rendering { public static class EditorExtensions { public static HtmlString Editor(this IHtmlHelper html, string expression) { return html.Editor(expression, templateName: null, htmlFieldName: null, additionalViewData: null); } public static HtmlString Editor(this IHtmlHelper html, string expression, object additionalViewData) { return html.Editor(expression, templateName: null, htmlFieldName: null, additionalViewData: additionalViewData); } public static HtmlString Editor(this IHtmlHelper html, string expression, string templateName) { return html.Editor(expression, templateName, htmlFieldName: null, additionalViewData: null); } public static HtmlString Editor(this IHtmlHelper html, string expression, string templateName, object additionalViewData) { return html.Editor(expression, templateName, htmlFieldName: null, additionalViewData: additionalViewData); } public static HtmlString Editor(this IHtmlHelper html, string expression, string templateName, string htmlFieldName) { return html.Editor(expression, templateName, htmlFieldName, additionalViewData: null); } public static HtmlString EditorFor(this IHtmlHelper html, Expression> expression) { return html.EditorFor(expression, templateName: null, htmlFieldName: null, additionalViewData: null); } public static HtmlString EditorFor(this IHtmlHelper html, Expression> expression, object additionalViewData) { return html.EditorFor(expression, templateName: null, htmlFieldName: null, additionalViewData: additionalViewData); } public static HtmlString EditorFor(this IHtmlHelper html, Expression> expression, string templateName) { return html.EditorFor(expression, templateName, htmlFieldName: null, additionalViewData: null); } public static HtmlString EditorFor(this IHtmlHelper html, Expression> expression, string templateName, object additionalViewData) { return html.EditorFor(expression, templateName, htmlFieldName: null, additionalViewData: additionalViewData); } public static HtmlString EditorFor(this IHtmlHelper html, Expression> expression, string templateName, string htmlFieldName) { return html.EditorFor(expression, templateName, htmlFieldName, additionalViewData: null); } public static HtmlString EditorForModel(this IHtmlHelper html) { return html.Editor(expression: string.Empty, templateName: null, htmlFieldName: null, additionalViewData: null); } public static HtmlString EditorForModel(this IHtmlHelper html, object additionalViewData) { return html.Editor(expression: string.Empty, templateName: null, htmlFieldName: null, additionalViewData: additionalViewData); } public static HtmlString EditorForModel(this IHtmlHelper html, string templateName) { return html.Editor(expression: string.Empty, templateName: templateName, htmlFieldName: null, additionalViewData: null); } public static HtmlString EditorForModel(this IHtmlHelper html, string templateName, object additionalViewData) { return html.Editor(expression: string.Empty, templateName: templateName, htmlFieldName: null, additionalViewData: additionalViewData); } public static HtmlString EditorForModel(this IHtmlHelper html, string templateName, string htmlFieldName) { return html.Editor(expression: string.Empty, templateName: templateName, htmlFieldName: htmlFieldName, additionalViewData: null); } public static HtmlString EditorForModel(this IHtmlHelper html, string templateName, string htmlFieldName, object additionalViewData) { return html.Editor(expression: string.Empty, templateName: templateName, htmlFieldName: htmlFieldName, additionalViewData: additionalViewData); } } }