19 lines
589 B
C#
19 lines
589 B
C#
using AyCode.Interfaces.Profiles;
|
|
using AyCode.Interfaces.Users;
|
|
using AyCode.Interfaces.Users.Dtos;
|
|
|
|
namespace AyCode.Models.Users;
|
|
|
|
public abstract class AcUserModelDtoMinBase<TUserDtoMin, TProfile> : AcModelDtoBase where TUserDtoMin : IAcUserDtoMinBase where TProfile : class, IAcProfileBase
|
|
{
|
|
public TUserDtoMin UserDto { get; set;}
|
|
|
|
protected AcUserModelDtoMinBase() {}
|
|
protected AcUserModelDtoMinBase(IUserBase<TProfile> user) : base(user.Id)
|
|
{
|
|
Id = user.Id;
|
|
|
|
UserDto = Activator.CreateInstance<TUserDtoMin>();
|
|
UserDto.Id = user.Id;
|
|
}
|
|
} |