38 lines
No EOL
1.8 KiB
C#
38 lines
No EOL
1.8 KiB
C#
|
|
// Copyright (C) 2022 FCS Frede's Computer Services.
|
|
// This program is free software: you can redistribute it and/or modify
|
|
// it under the terms of the GNU Affero General Public License as
|
|
// published by the Free Software Foundation, either version 3 of the
|
|
// License, or (at your option) any later version.
|
|
//
|
|
// This program is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU Affero General Public License for more details.
|
|
//
|
|
// You should have received a copy of the GNU Affero General Public License
|
|
// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html]
|
|
//
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace Wonky.Entity.DTO;
|
|
|
|
public class UserManagerEditView
|
|
{
|
|
[MaxLength(128)] public string CompanyId { get; set; } = "";
|
|
[MaxLength(128)] public string ContactId { get; set; } = "";
|
|
[Required][MaxLength(3)] public string CountryCode { get; set; } = "";
|
|
[MaxLength(128)] public string Description { get; set; } = "";
|
|
[Required][MaxLength(255)] public string Email { get; set; } = "";
|
|
public bool EmailConfirmed { get; set; }
|
|
public bool EShop { get; set; }
|
|
[Required][MaxLength(50)] public string FirstName { get; set; } = "";
|
|
[Required][MaxLength(50)] public string LastName { get; set; } = "";
|
|
public bool LockoutEnabled { get; set; }
|
|
public string Passwd { get; set; } = "";
|
|
[Required][MaxLength(20)] public string PhoneNumber { get; set; } = "";
|
|
[Required][MaxLength(20)] public string SalesRep { get; set; } = "";
|
|
public string UserId { get; set; } = "";
|
|
public List<UserRoleAssignment> AssignedRoles { get; set; } = new();
|
|
} |