Beispiel #1
0
        public static IEnumerable <SelectListItem> MemberTypes()
        {
            var cv    = new CodeValueModel();
            var types = ConvertToSelect(cv.MemberTypesList(), "Id").ToList();

            types.Insert(0, new SelectListItem {
                Value = "0", Text = "(not specified)"
            });
            return(types);
        }