Пример #1
0
        public ActionResult ListItems()
        {
            var listPictureItem = _da.GetListSimpleByRequest(Request);
            var model           = new ModelPictureItem
            {
                ListItem = listPictureItem,
                PageHtml = _da.GridHtmlPage
            };

            return(View(model));
        }
Пример #2
0
        public ActionResult ListItems(int agencyId)
        {
            var obj = Request["key"] != Keyapi
                ? new ModelPictureItem()
                : new ModelPictureItem {
                ListItem = _da.GetListSimpleByRequest(Request, agencyId), PageHtml = _da.GridHtmlPage
            };

            return(Json(obj, JsonRequestBehavior.AllowGet));
        }
Пример #3
0
        /// <summary>
        /// Load danh sách bản ghi dưới dạng bảng
        /// </summary>
        /// <returns></returns>
        public ActionResult ListItems(int type)
        {
            var listFaqQuestionItem = _pictureDa.GetListSimpleByRequest(Request);
            var model = new ModelPictureItem
            {
                Container = Request["Container"],
                ListItem  = listFaqQuestionItem,
                PageHtml  = _pictureDa.GridHtmlPage
            };

            return(View(model));
        }