mirror of
https://github.com/rudollee/LearningMVC.git
synced 2026-08-11 16:32:55 +00:00
Primitive Commit
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace PartyInvites.Models
|
||||
{
|
||||
public class GuestResponse
|
||||
{
|
||||
[Required(ErrorMessage = "Please enter your name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[Required(ErrorMessage = "Please enter your email address")]
|
||||
[RegularExpression(".+\\@.+\\..+", ErrorMessage = "Please enter a valid email address")]
|
||||
public string Email { get; set; }
|
||||
|
||||
[Required(ErrorMessage = "Please enter your phone number")]
|
||||
public string Phone { get; set; }
|
||||
|
||||
[Required(ErrorMessage = "Please specify whether you'll attend")]
|
||||
public bool? WillAttend { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user