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)); }
public ActionResult Index() { List <CapeKiwanda> allCapeKiwandaComments = CapeKiwanda.GetAll(); return(View(allCapeKiwandaComments)); }