32 lines
781 B
C#
32 lines
781 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Runtime.Serialization;
|
|
using System.Web;
|
|
using Web_Server_EHEC.Model;
|
|
|
|
namespace Web_Server_EHEC.DAL
|
|
{
|
|
[DataContract]
|
|
public class PatientDAL
|
|
{
|
|
public class Patient : Person
|
|
{
|
|
private int _PatientId;
|
|
|
|
[DataMember]
|
|
public int Patientid { get => _PatientId; set => _PatientId = value; }
|
|
|
|
public Patient() { }
|
|
public Patient(string firstName, string lastName, DateTime birthdate, string street, string city)
|
|
{
|
|
this.Firstname = firstName;
|
|
this.Lastname = lastName;
|
|
this.Street = street;
|
|
this.City = city;
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
} |