public bool UpdateResourceString([FromBody] dynamic parm)
        {
            string value = parm.value;
            string resourceId = parm.resourceId;
            string resourceSet = parm.resourceSet;
            string localeId = parm.localeId;
            string comment = parm.comment;

            var item = Manager.GetResourceItem(resourceId, resourceSet, localeId);
            if (item == null)
            {
                item = new ResourceItem()
                {
                    ResourceId = resourceId,
                    LocaleId = localeId,
                    ResourceSet = resourceSet,
                    Comment = comment
                };
            }

            if (string.IsNullOrEmpty(value))
                return Manager.DeleteResource(resourceId, resourceSet: resourceSet, cultureName: localeId);

            item.Value = value;
            item.Type = null;
            item.FileName = null;
            item.BinFile = null;
            item.TextFile = null;

            if (Manager.UpdateOrAddResource(item) < 0)
                return false;

            return true;
        }
        public bool UpdateResourceString(dynamic parm)
        {
            string value       = parm.value;
            string resourceId  = parm.resourceId;
            string resourceSet = parm.resourceSet;
            string localeId    = parm.localeId;

            var item = Manager.GetResourceItem(resourceId, resourceSet, localeId);

            if (item == null)
            {
                item = new ResourceItem()
                {
                    ResourceId  = resourceId,
                    LocaleId    = localeId,
                    ResourceSet = resourceSet
                };
            }

            if (string.IsNullOrEmpty(value))
            {
                return(Manager.DeleteResource(resourceId, resourceSet: resourceSet, cultureName: localeId));
            }

            item.Value    = value;
            item.Type     = null;
            item.FileName = null;
            item.BinFile  = null;
            item.TextFile = null;

            if (Manager.UpdateOrAddResource(item) < 0)
            {
                return(false);
            }

            return(true);
        }