The next generation of the Teknik Services. Written in ASP.NET. https://www.teknik.io/
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

LoginViewModel.cs 607B

123456789101112131415161718192021222324
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using Teknik.ViewModels;
  5. namespace Teknik.Areas.Users.ViewModels
  6. {
  7. public class LoginViewModel : ViewModelBase
  8. {
  9. [Required]
  10. [Display(Name = "Username")]
  11. public string Username { get; set; }
  12. [Required]
  13. [Display(Name = "Password")]
  14. [DataType(DataType.Password)]
  15. public string Password { get; set; }
  16. [Display(Name = "Remember Me")]
  17. public bool RememberMe { get; set; }
  18. public string ReturnUrl { get; set; }
  19. }
  20. }