Пример #1
0
        public ActionResult ListItems()
        {
            var model = new ModelCityItem
            {
                ListItem = _cityDa.GetListbyRequest(Request),
                PageHtml = _cityDa.GridHtmlPage
            };

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

            return(Json(obj, JsonRequestBehavior.AllowGet));
        }