public ActionResult Create(string userName, string userComment, DateTime timePost) { IndianBeach newPost = new IndianBeach(userName, userComment, timePost); newPost.Save(); List <IndianBeach> allPosts = IndianBeach.GetAll(); return(View("Index", allPosts)); }
public ActionResult Index() { List <IndianBeach> allIndianBeachComments = IndianBeach.GetAll(); return(View(allIndianBeachComments)); }