// GET: Categories
        public ActionResult IndexCategories()
        {
            ApplicationNameMongoDB db = new ApplicationNameMongoDB();
            var categories            = db.GetAllCategories();
            CategoriesModels model    = new CategoriesModels();

            model.EntityList = categories.ToList();
            return(View(model));
        }
        public ActionResult AddCategory()
        {
            ApplicationNameMongoDB db = new ApplicationNameMongoDB();
            var categories            = db.GetAllCategories();
            CategoriesModels model    = new CategoriesModels();

            model.EntityList   = categories.ToList();
            ViewBag.Categories = model;
            return(View());
        }