// GET: Operate/Brand public ActionResult Index(string type, string EName = "", string BName = "", int pageIndex = 1, int pageSize = 10, int GoodsClassID = -1) { if (Request.IsAjaxRequest()) { if (type.Equals("data")) { return(Json(bll.GetBrandIndexList(EName, BName, pageIndex, pageSize, GoodsClassID), JsonRequestBehavior.AllowGet)); } else { return(Json(bll.GetCount(EName, BName, GoodsClassID), JsonRequestBehavior.AllowGet)); } } else { return(View()); } }