Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (15 sloc) 572 Bytes
using System.ComponentModel.DataAnnotations;
namespace CSUSK.Library.ViewModels
{
public class ContactViewModel
{
[Required(ErrorMessage = "Please enter your name")]
public string Name { get; set; }
[Required(ErrorMessage = "Please enter your email address")]
[EmailAddress(ErrorMessage = "Please enter a valid email address")]
public string Email { get; set; }
[Required]
[MaxLength(500, ErrorMessage ="Your message must be 500 characters or less")]
public string Message { get; set; }
}
}