source: Application/Models/DataTransferObjects/RegisterDTO.cs

Last change on this file was f5f7c24, checked in by 192011 <mk.snicker@…>, 17 months ago

Initial commit

  • Property mode set to 100644
File size: 1.1 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.ComponentModel.DataAnnotations;
4using System.ComponentModel.DataAnnotations.Schema;
5using System.Linq;
6using System.Text;
7using System.Threading.Tasks;
8
9namespace 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.