23 lines
621 B
C#
23 lines
621 B
C#
// Copyright (c) .NET Foundation. All rights reserved.
|
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace BasicWebSite.Models
|
|
{
|
|
public class LoginViewModel
|
|
{
|
|
[Required]
|
|
[Display(Name = "User name")]
|
|
public string UserName { get; set; }
|
|
|
|
[Required]
|
|
[DataType(DataType.Password)]
|
|
[Display(Name = "Password")]
|
|
public string Password { get; set; }
|
|
|
|
[Display(Name = "Remember me?")]
|
|
public bool RememberMe { get; set; }
|
|
}
|
|
}
|