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

36 lines
1.2 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 System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using _0_Framework.Application;
using Microsoft.AspNetCore.Http;
namespace AccountManagement.Application.Contracts.Account;
public class RegisterAccount
{
[Required(ErrorMessage = "نام و نام خانوادگی نمی تواند خالی باشد")]
public string Fullname { get; set; }
[Required(ErrorMessage = "نام کاربری نمی تواند خالی باشد")]
public string Username { get; set; }
[Required(ErrorMessage = "گذرواژه نمیتواند خالی باشد")]
public string Password { get; set; }
[Required(ErrorMessage = "شماره موبایل نمی تواند خالی باشد")]
[RegularExpression("^[0-9]*$", ErrorMessage = "شماره موبایل معتبر وارد کنید")]
public string Mobile { get; set; }
[Required(ErrorMessage = "کد ملی نمی تواند خالی باشد")]
public string NationalCode { get; set; }
public string Email { get; set; }
public IFormFile ProfilePhoto { get; set; }
public long ContractingPartyId { get; set; }
}