Beispiel #1
0
        public List <SelectListItem> GetSeatClassDropDown()
        {
            List <SelectListItem> ls = new List <SelectListItem>();
            var lm = sectionRepository.Retreive();

            foreach (var section in lm)
            {
                ls.Add(new SelectListItem()
                {
                    Text = section.SeatClassName, Value = section.SectionId.ToString()
                });
            }
            return(ls);
        }