Exemple #1
0
        public ApiResultObject <List <Application> > GetResult(ApplicationFilterQuery filter)
        {
            ApiResultObject <List <Application> > result = null;

            try
            {
                bool valid = true;
                valid = valid && IsNotNull(param);
                valid = valid && IsNotNull(filter);
                List <Application> resultData = null;
                if (valid)
                {
                    resultData = new ApplicationGet(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);
        }
Exemple #2
0
        public Application GetByCode(string code)
        {
            Application result = null;

            try
            {
                result = new ApplicationGet(param).GetByCode(code);
            }
            catch (Exception ex)
            {
                LogSystem.Error(ex);
                param.HasException = true;
                result             = null;
            }
            return(result);
        }
Exemple #3
0
        public Application GetById(long id)
        {
            Application result = null;

            try
            {
                result = new ApplicationGet(param).GetById(id);
            }
            catch (Exception ex)
            {
                LogSystem.Error(ex);
                param.HasException = true;
                result             = null;
            }
            return(result);
        }
Exemple #4
0
        public List <Application> Get(ApplicationFilterQuery filter)
        {
            List <Application> result = null;

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