private Patient CreatePatient()
 {
     return(new Patient
     {
         PatientId = PatientId,
         FirstName = FirstName,
         LastName = LastName,
         FullName = LastName + " " + FirstName,
         PESEL = PESEL,
         Age = CountAgeHelper.CountAge(PESEL),
         Gender = Gender
     });
 }
Beispiel #2
0
 private Guest CreateGuest()
 {
     return(new Guest
     {
         GuestId = GuestId,
         FirstName = FirstName,
         LastName = LastName,
         FullName = LastName + " " + FirstName,
         PESEL = PESEL,
         Age = CountAgeHelper.CountAge(PESEL),
         Gender = Gender
     });
 }