mirror of
https://github.com/rudollee/LearningMVC.git
synced 2026-08-11 16:32:55 +00:00
Ch. 21 Helper Methods
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
|
||||
namespace HelperMethods.Models
|
||||
{
|
||||
public class Person
|
||||
{
|
||||
public int PersonId { get; set; }
|
||||
public string FirstName { get; set; }
|
||||
public string LastName { get; set; }
|
||||
public DateTime BirthDate { get; set; }
|
||||
public Address HomeAddress { get; set; }
|
||||
public bool IsApproved { get; set; }
|
||||
public Role Role { get; set; }
|
||||
}
|
||||
|
||||
public class Address
|
||||
{
|
||||
public string Line1 { get; set; }
|
||||
public string Line2 { get; set; }
|
||||
public string City { get; set; }
|
||||
public string PostalCode { get; set; }
|
||||
public string Country { get; set; }
|
||||
}
|
||||
|
||||
public enum Role
|
||||
{
|
||||
Admin,
|
||||
User,
|
||||
Guest
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user