示例#1
0
        public ActionResult CategoryProducts(string category)
        {
            MongodbFunctions mongo = new MongodbFunctions();

            if (category.Equals(""))
            {
                return(RedirectToAction("Home", "Index"));
            }

            ViewBag.categoryName = category;
            return(View(mongo.GetCategoriyProducts(category)));
        }