// GET: Articles
        //View all article/search
        public ActionResult Index(string searchVal)
        {
            List <Article> list = new List <Article>();

            try
            {
                ArticleList articleList = new ArticleList();
                list = articleList.getListActiveArticle();

                if (searchVal != null)
                {
                    list.Clear();
                    if (Session["ROLE"] != null)
                    {
                        if (Session["ROLE"].ToString().Equals("Admin"))
                        {
                            return(RedirectToAction("Index", "Admin", new { searchVal }));
                        }
                        else
                        {
                            list = articleList.searchActiveArticle(searchVal);
                        }
                    }
                    else
                    {
                        list = articleList.searchActiveArticle(searchVal);
                    }
                }
            }catch (Exception e)
            {
                CommonUse.WriteLogError(e);
            }


            return(View(list));
        }