示例#1
0
        public ApiResultObject <List <Role> > GetResult(RoleFilterQuery filter)
        {
            ApiResultObject <List <Role> > result = null;

            try
            {
                bool valid = true;
                valid = valid && IsNotNull(param);
                valid = valid && IsNotNull(filter);
                List <Role> resultData = null;
                if (valid)
                {
                    resultData = new RoleGet(param).Get(filter);
                }
                result = this.PackResult(resultData);
                this.FailLog(result.Success, filter, result.Data);
            }
            catch (Exception ex)
            {
                LogSystem.Error(ex);
                param.HasException = true;
                result             = null;
            }
            return(result);
        }