예제 #1
0
        public ApiResultObject <List <UserRole> > GetResult(UserRoleFilterQuery filter)
        {
            ApiResultObject <List <UserRole> > result = null;

            try
            {
                bool valid = true;
                valid = valid && IsNotNull(param);
                valid = valid && IsNotNull(filter);
                List <UserRole> resultData = null;
                if (valid)
                {
                    resultData = new UserRoleGet(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);
        }
예제 #2
0
 internal UserRole GetById(long id, UserRoleFilterQuery filter)
 {
     try
     {
         return(DAOWorker.AasUserRoleDAO.GetById(id, filter.Query()));
     }
     catch (Exception ex)
     {
         LogSystem.Error(ex);
         param.HasException = true;
         return(null);
     }
 }
예제 #3
0
 internal List <UserRole> Get(UserRoleFilterQuery filter)
 {
     try
     {
         return(DAOWorker.AasUserRoleDAO.Get(filter.Query(), param));
     }
     catch (Exception ex)
     {
         LogSystem.Error(ex);
         param.HasException = true;
         return(null);
     }
 }
예제 #4
0
 internal List <UserRole> GetByRoleId(long roleId)
 {
     try
     {
         UserRoleFilterQuery filterQuery = new UserRoleFilterQuery();
         filterQuery.RoleId = roleId;
         return(this.Get(filterQuery));
     }
     catch (Exception ex)
     {
         LogSystem.Error(ex);
         param.HasException = true;
         return(null);
     }
 }
예제 #5
0
        public List <UserRole> Get(UserRoleFilterQuery filter)
        {
            List <UserRole> result = null;

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