Example #1
0
        public ActionResult Profile()
        {
            String username = Session["USER_NAME"].ToString();



            if (username == null)
            {
                return(RedirectToAction("Index", "Home"));
            }
            else
            {
                String fullname = Session["FULL_NAME"].ToString();
                ViewBag.Author = fullname;
                ArticleList articleList = new ArticleList();

                List <Article> listArticle = articleList.getListArticleOfUser(username);

                return(View(listArticle));
            }
        }