コード例 #1
0
        public ActionResult WidgetContentOne()
        {
            System.Threading.Thread.Sleep(1000); // Fake waiting time to show javascript spinner
            var model = new ContentViewModel();

            model.AddSubTitle("A content based block");
            model.AddParagraph("A content based widget with lots of information.");
            model.AddListItem("A list with items");
            model.AddListItem("Another list item");
            model.AddParagraph("Some further text after the list contains even more words, and punctuation marks as well.");
            return(PartialView("EditorTemplates/ContentViewModel", model));
        }