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
     };
 }
예제 #3
0
 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();
 }
예제 #4
0
 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;
 }