55 lines
1.8 KiB
C#
55 lines
1.8 KiB
C#
using _0_Framework.Application;
|
||
//using AccountManagement.Application.Contracts.Role;
|
||
using System.Collections.Generic;
|
||
using System.ComponentModel.DataAnnotations;
|
||
using AccountManagement.Application.Contracts.Role;
|
||
using Microsoft.AspNetCore.Http;
|
||
using Microsoft.AspNetCore.Mvc.Rendering;
|
||
|
||
namespace AccountManagement.Application.Contracts.Account;
|
||
|
||
public class CreateAccount
|
||
{
|
||
[Required(ErrorMessage = ValidationMessages.IsRequired)]
|
||
public string Fullname { get; set; }
|
||
|
||
[Required(ErrorMessage = ValidationMessages.IsRequired)]
|
||
public string Username { get; set; }
|
||
|
||
[Required(ErrorMessage = ValidationMessages.IsRequired)]
|
||
public string Password { get; set; }
|
||
|
||
[Required(ErrorMessage = "این مقدار نمی تواند خالی باشد")]
|
||
|
||
[RegularExpression("^[0-9]*$", ErrorMessage = "لطفا فقط عدد وارد کنید")]
|
||
public string Mobile { get; set; }
|
||
|
||
public long RoleId { get; set; }
|
||
|
||
public IFormFile ProfilePhoto { get; set; }
|
||
public string ProfilePhotoStr { get; set; }
|
||
public List<RoleViewModel> Roles { get; set; }
|
||
|
||
public string AdminAreaPermission { get; set; }
|
||
public string ClientAriaPermission { get; set; }
|
||
public string NationalCode { get; set; }
|
||
public string Email { get; set; }
|
||
public string VerifyCode { get; set; }
|
||
public string IsActiveString { get; set; }
|
||
|
||
/// <summary>
|
||
/// آیا کاربر در پروگرام منیجر فعالیت مبکند؟
|
||
/// </summary>
|
||
public bool IsProgramManagerUser { get; set; }
|
||
/// <summary>
|
||
/// لیست نقش های پروگرام منیجر
|
||
/// </summary>
|
||
public List<long> UserRoles { get; set; }
|
||
|
||
/// <summary>
|
||
/// لیست نقشهای موجود در پروگرام منیجر
|
||
/// </summary>
|
||
public SelectList RoleList { get; set; }
|
||
|
||
|
||
} |