Skip to content

Commit 6ff4dbb

Browse files
committed
model for new user register
1 parent 63c159c commit 6ff4dbb

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.ComponentModel.DataAnnotations;
4+
using System.Linq;
5+
using System.Threading.Tasks;
6+
7+
namespace Supermarket.Resources
8+
{
9+
public class RegisterResource
10+
{
11+
[DataType(DataType.EmailAddress)]
12+
public string Email { get; set; }
13+
14+
[DataType(DataType.Password)]
15+
public string Password { get; set; }
16+
17+
[Compare("Password")]
18+
[DataType(DataType.Password)]
19+
public string ConfirmPassword { get; set; }
20+
21+
public string FullName { get; set; }
22+
}
23+
}

0 commit comments

Comments
 (0)