public ActionResult GetAllListSimpleByParentID(string key, int id) { var obj = key != Keyapi ? new List <ModuleItem>() : _da.GetAllListSimpleByParentID(id, Agencyid()); return(Json(obj, JsonRequestBehavior.AllowGet)); }