private void SetupTopicList() { TopicService topicService = new TopicService(Ioc.GetInstance<ITopicRepository>()); var topics = topicService.GetAllTopics().OrderByDescending(x => x.CreatedDate); foreach (var topic in topics) { ddlTopics.Items.Add(new ListItem(topic.TopicName, topic.TopicId.ToString())); } ListItem item = new ListItem("Please select a Topic", "-1"); ddlTopics.Items.Insert(0, item); item.Selected = true; }