last ...
This commit is contained in:
@@ -1,10 +1,8 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using AutoMapper;
|
||||
using xAiModels.Models.Dtos;
|
||||
using xAiModels.Models.Entities;
|
||||
using xIdentityService.Extensions;
|
||||
using xIdentityService.Interfaces;
|
||||
|
||||
namespace xAiModels.Configurations.Entities
|
||||
@@ -26,6 +24,21 @@ namespace xAiModels.Configurations.Entities
|
||||
ResolutionContext context
|
||||
)
|
||||
{
|
||||
//
|
||||
// Retrieve Owner ...
|
||||
var device = identityProvider.GetDevice();
|
||||
var ownerUserInfo = identityProvider.GetUserInfo(
|
||||
device: device,
|
||||
userSelectByParam: source.OwnerId
|
||||
)
|
||||
.GetAwaiter()
|
||||
.GetResult();
|
||||
var owner = ownerUserInfo.ToXPersonDto();
|
||||
|
||||
//
|
||||
// Setting Owner ...
|
||||
destination.Owner = owner;
|
||||
|
||||
//
|
||||
// Retrieve Owner ...
|
||||
// Retrieve Title Resources ...
|
||||
|
||||
Reference in New Issue
Block a user