public ActionResult ShowCategories()
        {
            BlogContext blogContext = DbLogic.GetDB();

            ViewBag.Categories = DbLogic.GetCategories(blogContext);
            return(View());
        }
        public ActionResult Index(string articleCat, string searchString, DateTime?fromDate, DateTime?forDate)
        {
            BlogContext db = DbLogic.GetDB();

            ViewBag.Categories = DbLogic.GetCategories(db);
            ViewBag.Articles   = StartPageLogic.Search(articleCat, searchString, fromDate, forDate);
            return(View());
        }
        public ActionResult AddArticle()
        {
            AddArticleViewModel a           = new AddArticleViewModel();
            BlogContext         blogContext = DbLogic.GetDB();

            a.CategoryList = DbLogic.GetCategories(blogContext);
            a.TagsList     = DbLogic.GetTags(blogContext).ToList <Tag>();
            return(View(a));
        }