using AyCode.Interfaces.Addresses; using AyCode.Interfaces.Profiles; using AyCode.Interfaces.Profiles.Dtos; using AyCode.Interfaces.Users; using AyCode.Interfaces.Users.Dtos; namespace AyCode.Models.Users; public abstract class AcUserModelDtoMinBase : AcModelDtoBase, IAcUserModelDtoMinBase where TUserDtoMin : class, IAcUserDtoMinBase where TProfile : class, IAcProfile where TProfileDto : class, IAcProfileDtoBase where TAddress : class, IAcAddress { public TUserDtoMin UserDto { get; set;} public TProfile Profile { get; set; } protected AcUserModelDtoMinBase() {} protected AcUserModelDtoMinBase(IAcUserDtoMinBase user) : base(user.Id) { Id = user.Id; UserDto = Activator.CreateInstance(); UserDto.Id = user.Id; UserDto.AffiliateId = user.AffiliateId; Profile = Activator.CreateInstance(); Profile.Id = user.Profile.Id; Profile.Name = user.Profile.Name; Profile.FirstName = user.Profile.FirstName; Profile.LastName = user.Profile.LastName; //Profile.NickName = user.Profile.NickName; } }