Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (15 sloc) 571 Bytes
using System.ComponentModel.DataAnnotations;
namespace CSUSK.Core.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; }
}
}
You can’t perform that action at this time.