Exemplo n.º 1
0
        public ApiResultObject <List <ApplicationRole> > GetResult(ApplicationRoleFilterQuery filter)
        {
            ApiResultObject <List <ApplicationRole> > result = null;

            try
            {
                bool valid = true;
                valid = valid && IsNotNull(param);
                valid = valid && IsNotNull(filter);
                List <ApplicationRole> resultData = null;
                if (valid)
                {
                    resultData = new ApplicationRoleGet(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);
        }
Exemplo n.º 2
0
        public List <ApplicationRole> GetByApplicationId(long applicationId)
        {
            List <ApplicationRole> result = null;

            try
            {
                result = new ApplicationRoleGet(param).GetByApplicationId(applicationId);
            }
            catch (Exception ex)
            {
                LogSystem.Error(ex);
                param.HasException = true;
                result             = null;
            }
            return(result);
        }
Exemplo n.º 3
0
        public ApplicationRole GetById(long id)
        {
            ApplicationRole result = null;

            try
            {
                result = new ApplicationRoleGet(param).GetById(id);
            }
            catch (Exception ex)
            {
                LogSystem.Error(ex);
                param.HasException = true;
                result             = null;
            }
            return(result);
        }
Exemplo n.º 4
0
        public List <ApplicationRole> Get(ApplicationRoleFilterQuery filter)
        {
            List <ApplicationRole> result = null;

            try
            {
                result = new ApplicationRoleGet(param).Get(filter);
            }
            catch (Exception ex)
            {
                LogSystem.Error(ex);
                param.HasException = true;
                result             = null;
            }
            return(result);
        }