Esempio n. 1
0
        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));
        }
Esempio n. 2
0
 public ActionResult DeleteAll()
 {
     IndianBeach.ClearAll();
     return(View());
 }
Esempio n. 3
0
        public ActionResult Index()
        {
            List <IndianBeach> allIndianBeachComments = IndianBeach.GetAll();

            return(View(allIndianBeachComments));
        }