Proj. plan, URS v1.01; UML v1; ModelBinding, DataAnnotations, Models start
This commit is contained in:
22
StudentHouseDashboard/WebApp/Contact.cs
Normal file
22
StudentHouseDashboard/WebApp/Contact.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace WebApp
|
||||
{
|
||||
public class Contact
|
||||
{
|
||||
public Contact()
|
||||
{
|
||||
|
||||
}
|
||||
public Contact(string name, string email)
|
||||
{
|
||||
Name = name;
|
||||
Email = email;
|
||||
}
|
||||
[Required]
|
||||
public string Name { get; set; }
|
||||
[Required]
|
||||
[EmailAddress]
|
||||
public string Email { get; set; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user