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