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
 internal ApplicationRole GetById(long id, ApplicationRoleFilterQuery filter)
 {
     try
     {
         return(DAOWorker.AasApplicationRoleDAO.GetById(id, filter.Query()));
     }
     catch (Exception ex)
     {
         LogSystem.Error(ex);
         param.HasException = true;
         return(null);
     }
 }
Exemplo n.º 3
0
 internal List <ApplicationRole> Get(ApplicationRoleFilterQuery filter)
 {
     try
     {
         return(DAOWorker.AasApplicationRoleDAO.Get(filter.Query(), param));
     }
     catch (Exception ex)
     {
         LogSystem.Error(ex);
         param.HasException = true;
         return(null);
     }
 }
Exemplo n.º 4
0
 internal List <ApplicationRole> GetByRoleId(long roleId)
 {
     try
     {
         ApplicationRoleFilterQuery filterQuery = new ApplicationRoleFilterQuery();
         filterQuery.RoleId = roleId;
         return(this.Get(filterQuery));
     }
     catch (Exception ex)
     {
         LogSystem.Error(ex);
         param.HasException = true;
         return(null);
     }
 }
Exemplo n.º 5
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);
        }