|
using System;
using System.Web;
using System.Web.Mvc;
using System.ComponentModel.DataAnnotations;
//
using Resources;
namespace MvcBasicSite.Models
{
/// <summary>
/// Defines the Log On model.
/// </summary>
public class LogOnModel
{
/// <summary>
/// Gets or sets the user name.
/// </summary>
[Required(ErrorMessageResourceType = typeof(Resource), ErrorMessageResourceName = "ValidationRequired")]
public string Username { get; set; }
/// <summary>
/// Gets or sets the password.
/// </summary>
[Required(ErrorMessageResourceType = typeof(Resource), ErrorMessageResourceName = "ValidationRequired")]
[DataType(DataType.Password)]
public string Password { get; set; }
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I have about 20 years experiences in leading software projects and teams and about 25 years of working experience in software development (SW Developer, SW Lead, SW Architect, SW PM, SW Manager/Group Leader).