main
|
Last change
on this file was 08aefc6, checked in by mmilevski <markomilevski3@…>, 4 weeks ago |
|
Initial commit
|
-
Property mode
set to
100644
|
|
File size:
615 bytes
|
| Line | |
|---|
| 1 | using System.ComponentModel.DataAnnotations;
|
|---|
| 2 |
|
|---|
| 3 | namespace KernelRecordsMVC.Application.ViewModels;
|
|---|
| 4 |
|
|---|
| 5 | public class RegisterViewModel
|
|---|
| 6 | {
|
|---|
| 7 | [Required]
|
|---|
| 8 | [EmailAddress]
|
|---|
| 9 | public string Email { get; set; } = null!;
|
|---|
| 10 |
|
|---|
| 11 | [Required]
|
|---|
| 12 | public string Username { get; set; } = null!;
|
|---|
| 13 |
|
|---|
| 14 | [Required]
|
|---|
| 15 | [DataType(DataType.Password)]
|
|---|
| 16 | public string Password { get; set; } = null!;
|
|---|
| 17 |
|
|---|
| 18 | [Required]
|
|---|
| 19 | [DataType(DataType.Password)]
|
|---|
| 20 | [Compare("Password")]
|
|---|
| 21 | public string ConfirmPassword { get; set; } = null!;
|
|---|
| 22 |
|
|---|
| 23 | public string? ShippingAddress { get; set; }
|
|---|
| 24 |
|
|---|
| 25 | public string? TelephoneNumber { get; set; }
|
|---|
| 26 | } |
|---|
Note:
See
TracBrowser
for help on using the repository browser.