예제 #1
0
        private IEnumerable <DropDown> GetRowHeaders()
        {
            var             headers         = receiver.GetHedars();
            List <DropDown> dropDownHeaders = new List <DropDown>();

            dropDownHeaders.Add(new DropDown {
                Name = "--Select--", Value = "0"
            });
            if (headers.Any())
            {
                dropDownHeaders.AddRange(headers.Select(x => new DropDown {
                    Name = x.RowHedarName, Value = x.RowHedarId.ToString()
                }).ToList());
            }
            return(dropDownHeaders);
        }