namespace OpenWarehouse.auth.lib.Model.Account;

public class CreateUserModelReturn() : CreateUserModel()
{
    public CreateUserModelReturn(string? returnMess, string? newUserId, bool isCreated, List<RoleStatus>? roleStatusList) : this()
    {
        ReturnMess = returnMess;
        NewUserId = newUserId;
        IsCreated = isCreated;
        Roles = roleStatusList;
    }
    public string? ReturnMess { get; set; }
    public string? NewUserId { get; set; }
    public bool IsCreated { get; set; }
    public new List<RoleStatus>? Roles { get; set; }
    
    public class RoleStatus
    {
        public bool Exist { get; set; }
        public bool Added { get; set; }
        public string? Name { get; set; }
        public string? Mess { get; set; }
    }
}