コード例 #1
0
        public ActionResult Create(string userName, string userComment, DateTime timePost)
        {
            CapeKiwanda newPost = new CapeKiwanda(userName, userComment);

            newPost.Save();
            List <CapeKiwanda> allPosts = CapeKiwanda.GetAll();

            return(View("Index", allPosts));
        }
コード例 #2
0
 public ActionResult DeleteAll()
 {
     CapeKiwanda.ClearAll();
     return(View());
 }
コード例 #3
0
        public ActionResult Index()
        {
            List <CapeKiwanda> allCapeKiwandaComments = CapeKiwanda.GetAll();

            return(View(allCapeKiwandaComments));
        }