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 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; } /// /// آیا کاربر در پروگرام منیجر فعالیت مبکند؟ /// public bool IsProgramManagerUser { get; set; } /// /// لیست نقش های پروگرام منیجر /// public List UserRoles { get; set; } /// /// لیست نقشهای موجود در پروگرام منیجر /// public SelectList RoleList { get; set; } }