Files
Backend-Api/AccountManagement.Application.Contracts/Account/CreateAccount.cs

38 lines
1.3 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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;
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; }
}