Beispiel #1
0
        private static IEnumerable <SelectListItem> createMeasures(IMeasureRepository r)
        {
            var list     = new List <SelectListItem>();
            var measures = r.Get().GetAwaiter().GetResult();

            foreach (var m in measures)
            {
                list.Add(new SelectListItem(m.Data.Name, m.Data.Id));
            }
            return(list);
        }