public static BloodDonor Create(string type, Guid patientId, DateTime applyDate) { var instance = new BloodDonor { BloodDonorId = Guid.NewGuid() }; instance.Update(type, patientId, applyDate, false, false, null); return(instance); }
public static BloodDonor Create(string type, Guid patientId) { var instance = new BloodDonor { BloodDonorId = Guid.NewGuid() }; instance.Update(type, patientId); return(instance); }
public static Patient Create(string firstName, string lastName, string email, string password, string city, DateTime birthdate, string phoneNumber, BloodDonor bloodDonor) { var instance = new Patient { PatientId = Guid.NewGuid() }; instance.Update(firstName, lastName, email, password, city, birthdate, phoneNumber); return(instance); }