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); }
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); }
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); }
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); }