public ActionResult ListItems() { var listactiveRoleItem = _dnActiveRoleDa.GetListSimpleByRequest(Request).OrderBy(m => m.Ord); var model = new ModelActiveRoleItem { ListItem = listactiveRoleItem, PageHtml = _dnActiveRoleDa.GridHtmlPage }; return(View(model)); }
public ActionResult GetListSimpleByRequest() { var obj = Request["key"] != Keyapi ? new List <ActiveRoleItem>() : _dl.GetListSimpleByRequest(Request); return(Json(obj, JsonRequestBehavior.AllowGet)); }