Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class User
- {
- [Key]
- public int UserID { get; set; }
- [Display(Name = "Nazwa uzytkowinika")]
- [Required(ErrorMessage = "Nazwa użytkownika jest wymagana ")]
- public string UserName { get; set; }
- [Display(Name = "Hasło")]
- [DataType(DataType.Password)]
- [Required(ErrorMessage = "Password is required ")]
- public string Password { get; set; }
- public bool isAdmin
- {
- get; set;
- }
- [DataType(DataType.Password)]
- [Display(Name = "Potwierdzenie hasła")]
- [Required(ErrorMessage = "Potwierdzenie hasła jest wymagane")]
- [Compare("Password", ErrorMessage = "Hasło nie pasuje ")]
- public string ConfirmPassword { get; set; }
- public User()
- {
- }
- public User(string username, string password)
- {
- this.UserName = username;
- this.Password = password;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement