public static IItemWriter <Select, SelectContent> Select(this IAnyContentMarker contentHelper, IEnumerable <SelectListItem> items)
        {
            var select = contentHelper.Select();

            select.Item.Items = items.Select(x => SelectListItemToSelectOption(contentHelper.Context, x));
            return(select);
        }
Ejemplo n.º 2
0
        public static IWriter2 <Select, SelectContent> Select(this IAnyContentMarker contentHelper, IEnumerable <SelectListItem> items)
        {
            var vals = items.Select(x => SelectListItemToSelectOption(contentHelper.Context, x));

            return(contentHelper.Select(vals));
        }