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