public async Task<GetOneLoginHistoryOutput> GetOneLoginHistory(GetByIdInput input) { LoginHistory result = await this._loginHistoryBll.GetOneLoginHistory(input.Id); return new GetOneLoginHistoryOutput() { LoginHistory = result }; }
public async Task<GetOnePermissionOutput> GetOnePermission(GetByIdInput input) { var result = await _permissionBll.GetOnePermission(input.Id); return new GetOnePermissionOutput { Permission = result }; }
public async Task<GetOneDeviceOutput> GetOneDevice(GetByIdInput input) { try { var result = await _deviceBll.GetOneDevice(input.Id); return new GetOneDeviceOutput { Device = result }; } catch (Exception ex) { ErrorStore.LogExceptionWithoutContext(ex); } return new GetOneDeviceOutput(); }
public async Task<GetOneUserAppOutput> GetUserClientApp(GetByIdInput input) { return new GetOneUserAppOutput() { UserApp = await this._userBll.GetUserApp(input.Id, AppApiType.ClientApi) }; }
public async Task<IEnumerable<PermissionItemGrant>> GetGroupPermissions(GetByIdInput input) { IEnumerable<PermissionItemGrant> result = await _permissionBll.GetGroupPermissions(input.Id); return result; }
public async Task<GetPermissionGrantsOutput> GetPermissionGrants(GetByIdInput input) { GetPermissionGrantsOutput result = await _permissionBll.GetPermissionGrants(input.Id); return result; }