Example #1
0
        private List <EventCategory> GetCategories()
        {
            List <EventCategory> categories = new List <EventCategory>();

            categories = _eventRepo.GetCategories().ToList();
            categories.Insert(0, new EventCategory {
                CategoryId = 0, CategoryName = "Select"
            });
            return(categories);
        }