//public IEnumerable<ResourceIdItem> GetResourceList(string resourceSet)
        public ActionResult GetResourceList(string resourceSet)
        {
            var ids = Manager.GetAllResourceIds(resourceSet);
            if (ids == null)
                throw new ApplicationException(DbIRes.T("ResourceSetLoadingFailed", STR_RESOURCESET) + ":" +
                                               Manager.ErrorMessage);

            
            //return ids;
            return Json(ids, jsonSettings);
        }
        public IEnumerable <ResourceIdItem> GetResourceList(string resourceSet)
        {
            var ids = Manager.GetAllResourceIds(resourceSet);

            if (ids == null)
            {
                throw new ApplicationException(WebUtils.GRes(STR_RESOURCESET, "ResourceSetLoadingFailed") + ":" +
                                               Manager.ErrorMessage);
            }

            return(ids);
        }
Пример #3
0
        public DataTable GetResourceList(string ResourceSet)
        {
            DataTable dt = Manager.GetAllResourceIds(ResourceSet);

            if (Manager == null)
            {
                throw new ApplicationException(WebUtils.LRes("ResourceSetLoadingFailed") + ":" + Manager.ErrorMessage);
            }

            foreach (DataRow row in dt.Rows)
            {
            }

            return(dt);
        }