Example #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="p">Page number</param>
        /// <returns></returns>
        public ViewResult Posts(int p = 1)
        {
            var posts = _postHandler.ReadAll();

            ViewBag.Title = "Latest Posts";

            return(View("List", posts));
        }