Ejemplo n.º 1
0
        public virtual object GetRecordData(LocalizedGroupDataItemRecordInput o)
        {
            ILocalizedGroupDataItem oResult;

            if (!_unlockApi)
            {
                return(JToken.FromObject(new ApiStatusMessage("You do not have permissions to perform that action", "Permissions Denied", ApiMessageType.Alert)));
            }
            o.GroupFilter = _groupFilter;
            o.GroupKey    = _forcedGroupKey ?? o.GroupKey;

            try
            {
                oResult = _repo.GetRecord(o);
            }
            catch (Exception ex)
            {
                return(new ApiExceptionMessage("An error has occurred", ex));
            }


            return(JToken.FromObject(oResult));
        }