Beispiel #1
0
        public JsonResult GetAll(string name, int idbrand, int idtype, int status, int page, int pageSize)
        {
            var catalogDao = new CatalogDao();
            var result     = catalogDao.GetAll(name, idbrand, idtype, status, page, pageSize);
            var types      = catalogDao.GetCatalogType();

            return(Json(new
            {
                totalRow = result.TotalRecord,
                data = result.Items,
                types = types.Items
            }, JsonRequestBehavior.AllowGet));
        }