The next generation of the Teknik Services. Written in ASP.NET. https://www.teknik.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

RegisterViewModel.cs 776B

123456789101112131415161718192021222324252627282930
  1. using System;
  2. using System.ComponentModel.DataAnnotations;
  3. using Teknik.Areas.Profile.Models;
  4. using Teknik.Helpers;
  5. using Teknik.Models;
  6. using Teknik.ViewModels;
  7. namespace Teknik.Areas.Profile.ViewModels
  8. {
  9. public class RegisterViewModel : ViewModelBase
  10. {
  11. private TeknikEntities db = new TeknikEntities();
  12. [Required]
  13. [Display(Name = "Username")]
  14. public string Username { get; set; }
  15. [Required]
  16. [Display(Name = "Password")]
  17. [DataType(DataType.Password)]
  18. public string Password { get; set; }
  19. [Required]
  20. [Display(Name = "Confirm Password")]
  21. [DataType(DataType.Password)]
  22. public string ConfirmPassword { get; set; }
  23. public string ReturnUrl { get; set; }
  24. }
  25. }