Beispiel #1
0
        public ApiResultObject <List <ViewModule> > GetViewResult(AasModuleViewFilter filter)
        {
            ApiResultObject <List <ViewModule> > result = null;

            try
            {
                bool valid = true;
                valid = valid && IsNotNull(param);
                valid = valid && IsNotNull(filter);
                List <ViewModule> resultData = null;
                if (valid)
                {
                    resultData = new ModuleGet(param).GetView(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);
        }
Beispiel #2
0
        public List <Module> Get(ModuleFilterQuery filter)
        {
            List <Module> result = null;

            try
            {
                result = new ModuleGet(param).Get(filter);
            }
            catch (Exception ex)
            {
                LogSystem.Error(ex);
                param.HasException = true;
                result             = null;
            }
            return(result);
        }
Beispiel #3
0
        public Module GetById(long id)
        {
            Module result = null;

            try
            {
                result = new ModuleGet(param).GetById(id);
            }
            catch (Exception ex)
            {
                LogSystem.Error(ex);
                param.HasException = true;
                result             = null;
            }
            return(result);
        }
Beispiel #4
0
        public List <ViewModule> GetView(AasModuleViewFilter filter)
        {
            List <ViewModule> result = null;

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