public JsonResult GetResourceItem([FromBody] dynamic parm) //public ResourceItemEx GetResourceItem([FromBody] dynamic parm) { string resourceId = parm.ResourceId; string resourceSet = parm.ResourceSet; string cultureName = parm.CultureName; var item = Manager.GetResourceItem(resourceId, resourceSet, ""); if (item == null) throw new ArgumentException(Manager.ErrorMessage); var itemEx = new ResourceItemEx(item); itemEx.ResourceList = GetResourceStringsInternal(resourceId, resourceSet).ToList(); return Json(itemEx, jsonSettings); }
public ResourceItemEx GetResourceItem(dynamic parm) { string resourceId = parm.ResourceId; string resourceSet = parm.ResourceSet; string cultureName = parm.CultureName; var item = Manager.GetResourceItem(resourceId, resourceSet, ""); if (item == null) { throw new ArgumentException(Manager.ErrorMessage); } var itemEx = new ResourceItemEx(item); itemEx.ResourceList = GetResourceStrings(resourceId, resourceSet).ToList(); return(itemEx); }
public ResourceItem GetResourceItem(string ResourceId, string ResourceSet, string CultureName) { return(Manager.GetResourceItem(ResourceId, ResourceSet, CultureName)); }