public ActionResult ListItems() { var obj = Request["key"] != Keyapi ? new ModelMenuGroupsItem() : new ModelMenuGroupsItem { ListItem = _da.GetListSimpleByRequest(Request, Agencyid()), PageHtml = _da.GridHtmlPage }; return(Json(obj, JsonRequestBehavior.AllowGet)); }
public ActionResult ListItems() { var model = new ModelMenuGroupsItem { ListItem = _menuGroupsDa.GetListSimpleByRequest(Request, Utility.AgencyId), PageHtml = _menuGroupsDa.GridHtmlPage }; ViewData.Model = model; return(View()); }