// 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. namespace Microsoft.AspNet.Mvc.Rendering { /// /// Name-related extensions for . /// public static class HtmlHelperNameExtensions { /// /// Returns the full HTML element name for the current model. /// /// The instance this method extends. /// A containing the element name. public static string NameForModel([NotNull] this IHtmlHelper htmlHelper) { return htmlHelper.Name(string.Empty); } /// /// Returns the HTML element Id for the current model. /// /// The instance this method extends. /// A containing the element Id. public static string IdForModel([NotNull] this IHtmlHelper htmlHelper) { return htmlHelper.Id(string.Empty); } } }