Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.ComponentModel.DataAnnotations;
|
---|
4 | using System.ComponentModel.DataAnnotations.Schema;
|
---|
5 | using System.Linq;
|
---|
6 | using System.Text;
|
---|
7 | using System.Threading.Tasks;
|
---|
8 |
|
---|
9 | namespace Models.DataTransferObjects
|
---|
10 | {
|
---|
11 | public class RegisterDTO
|
---|
12 | {
|
---|
13 | [EmailAddress(ErrorMessage = "Not valid email!")]
|
---|
14 | [Required(ErrorMessage ="Email address is required")]
|
---|
15 | public string Email { get; set; } = null!;
|
---|
16 |
|
---|
17 | [Required(ErrorMessage = "Username is required")]
|
---|
18 | public string Username { get; set; } = null!;
|
---|
19 |
|
---|
20 | [Required(ErrorMessage = "First name is required")]
|
---|
21 | public string FirstName { get; set; } = null!;
|
---|
22 | [Required(ErrorMessage = "Last name is required")]
|
---|
23 | public string LastName { get; set; } = null!;
|
---|
24 |
|
---|
25 | [Required(ErrorMessage = "Password is required")]
|
---|
26 | public string Pass { get; set; } = null!;
|
---|
27 | [Required(ErrorMessage = "Password does not match")]
|
---|
28 | public string ConfirmPass { get; set; } = null!;
|
---|
29 |
|
---|
30 | public bool IsBusinessUser { get; set; }
|
---|
31 |
|
---|
32 | }
|
---|
33 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.