public ActionResult ListItems() { var model = new ModelCityItem { ListItem = _cityDa.GetListbyRequest(Request), PageHtml = _cityDa.GridHtmlPage }; return(View(model)); }
public ActionResult ListItems() { var obj = Request["key"] != Keyapi ? new ModelCityItem() : new ModelCityItem { ListItem = _da.GetListbyRequest(Request), PageHtml = _da.GridHtmlPage }; return(Json(obj, JsonRequestBehavior.AllowGet)); }