Advertisement
Guest User

User

a guest
Feb 8th, 2018
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.80 KB | None | 0 0
  1. namespace WebPortal.Models
  2. {
  3.     public class User
  4.     {
  5.         [DataType(DataType.Text)]
  6.         public string Id { get; set; }
  7.         [DataType(DataType.Text)]
  8.         public string Name { get; set; }
  9.         [DataType(DataType.Text)]
  10.         public string Lastname { get; set; }
  11.         [DataType(DataType.EmailAddress)]
  12.         public string Email { get; set; }
  13.         [DataType(DataType.Text)]
  14.         public string Username { get; set; }
  15.         [DataType(DataType.Password)]
  16.         public string Password { get; set; }
  17.  
  18.         public User()
  19.         {
  20.             this.Id = Guid.NewGuid().ToString();
  21.             this.Name = "";
  22.             this.Lastname = "";
  23.             this.Email = "";
  24.             this.Username = "";
  25.             this.Password = "";
  26.         }
  27.        
  28.  
  29.     }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement