2021-01-30 00:17:51 -05:00
|
|
|
|
namespace GreatHomeChildcare.Models
|
2021-01-12 01:34:14 -05:00
|
|
|
|
{
|
2021-01-27 17:06:59 -05:00
|
|
|
|
public class Guardian
|
2021-01-12 01:34:14 -05:00
|
|
|
|
{
|
|
|
|
|
public int id { get; set; }
|
|
|
|
|
public string FirstName { get; set; }
|
|
|
|
|
public string LastName { get; set; }
|
|
|
|
|
public long PhoneNumber { get; set; }
|
|
|
|
|
public string EmailAddress { get; set; }
|
|
|
|
|
public int PinNumber { get; set; }
|
|
|
|
|
public int isAdmin { get; set; }
|
2021-01-25 01:48:07 -05:00
|
|
|
|
|
|
|
|
|
//readonly property to populate a single guardian's full name.
|
|
|
|
|
// this is a "Get" only property
|
|
|
|
|
public string DisplayName
|
|
|
|
|
{
|
|
|
|
|
get =>
|
|
|
|
|
$"{LastName}, {FirstName}";
|
|
|
|
|
}
|
2021-01-12 01:34:14 -05:00
|
|
|
|
}
|
|
|
|
|
}
|