public void DropDownListMenu() { shSexService _sex = new shSexService(); IEnumerable <shSex> dsSex = _sex.FindList(); ViewBag.Sex = new SelectList(dsSex, "SexId", "SexName", null); }
public static MvcHtmlString SexName(this HtmlHelper helper, int?SexId) { shSexService _sex = new shSexService(); return(new MvcHtmlString(_sex.SexName(SexId))); }