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); }
public List <UserRole> GetByUserId(long userId) { List <UserRole> result = null; try { result = new UserRoleGet(param).GetByUserId(userId); } catch (Exception ex) { LogSystem.Error(ex); param.HasException = true; result = null; } return(result); }
public UserRole GetById(long id) { UserRole result = null; try { result = new UserRoleGet(param).GetById(id); } catch (Exception ex) { LogSystem.Error(ex); param.HasException = true; result = null; } return(result); }
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); }
public List <ViewUserRole> GetView(AasUserRoleViewFilter filter) { List <ViewUserRole> result = null; try { result = new UserRoleGet(param).GetView(filter); } catch (Exception ex) { LogSystem.Error(ex); param.HasException = true; result = null; } return(result); }