Пример #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));
        }
Пример #2
0
        public ActionResult Index()
        {
            List <IndianBeach> allIndianBeachComments = IndianBeach.GetAll();

            return(View(allIndianBeachComments));
        }