HtmlHelperExtensions.SelectOptions Method

Namespace:
Weavy.Web.Extensions
Assembly:
Weavy.Web.dll

SelectOptions(HtmlHelper, IEnumerable, Nullable)

Returns a list of <option> elements representing the specified entities.

public static MvcHtmlString SelectOptions(this HtmlHelper html, IEnumerable entities, int? selected = default(int? ))

Parameters

html
System.Web.Mvc.HtmlHelper
entities
System.Collections.Generic.IEnumerable{Weavy.Core.Models.IEntity}
selected
System.Nullable{System.Int32}

Returns

System.Web.Mvc.MvcHtmlString