ACUserModelDTODetail

This commit is contained in:
Adam 2024-04-05 09:06:44 +02:00
parent 1c883c3666
commit 43c2183e58
3 changed files with 5 additions and 2 deletions

View File

@ -22,9 +22,10 @@ public abstract class AcUserModelDtoBase<TUserDto, TProfile, TProfileDto, TServi
protected AcUserModelDtoBase() {}
protected AcUserModelDtoBase(IAcUserDtoBase<TProfile, TServiceProvider, TUserToServiceProvider, TProfileAddress> user) : base(user)
{
Profile.AddressId = user.Profile.AddressId;
UserDto.AffiliateId = user.AffiliateId;
if (user.ServiceProviders.Count == 0) return;
UserDto.AffiliateId = user.AffiliateId;
//így proxy error lesz... - J.
//ServiceProviders = new List<TServiceProvider>(user.ServiceProviders);

View File

@ -18,5 +18,7 @@ public abstract class AcUserModelDtoDetailBase<TUserDtoDetail, TProfile, TProfil
protected AcUserModelDtoDetailBase() {}
protected AcUserModelDtoDetailBase(IAcUserDtoDetailBase<TProfile, TServiceProvider, TUserToServiceProvider, TProfileAddress> user) : base(user)
{
UserDto.EmailAddress = user.EmailAddress;
UserDto.PhoneNumber = user.PhoneNumber;
}
}

View File

@ -25,7 +25,7 @@ public abstract class AcUserModelDtoMinBase<TUserDtoMin, TProfile, TProfileDto,
UserDto.AffiliateId = user.AffiliateId;
Profile = Activator.CreateInstance<TProfileDto>();
Profile.Id = user.Profile.Id;
Profile.Id = user.Profile.Id;
Profile.Name = user.Profile.Name;
}
}