public static string InsertWidgets(string input) { CircuitBentCMSContext context = new CircuitBentCMSContext(); input = SocialMedia(input, context.SocialMedias.FirstOrDefault()); input = GetBlogPosts(input, context.Blogs.OrderByDescending(a => a.Date).Take(3)); input = RecentBlogs(input, context.Blogs.OrderByDescending(a => a.Date).Take(10)); input = ContactForm(input); input = Events(input, context.Shows.Where(a => a.Date > DateTime.Now).OrderBy(a => a.Date)); input = UpcomingEvents(input, context.Shows.Where(a => a.Date > DateTime.Now).OrderBy(a => a.Date).Take(10)); input = FacebookFeed(input, context.SocialMedias.FirstOrDefault()); //input = ImageSlider(input, context.ImageSliderImages.OrderBy(a => a.Order).ToList(), context.ImageSliderSettings.FirstOrDefault()); return(input); }