BuildFeed/Models/ViewModel/QuestionForm.cs
2015-01-04 22:14:43 +00:00

21 lines
482 B
C#

using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace BuildFeed.Models.ViewModel
{
public class QuestionForm
{
[Required]
[DisplayName("Your name")]
public string Name { get; set; }
[Required]
[DisplayName("Your email address")]
[EmailAddress]
public string Email { get; set; }
[Required]
[DisplayName("Question")]
public string Comment { get; set; }
}
}