Beispiel #1
0
 public static Appointment Create(Guid id, AppointmentSlot appointmentSlot, Payment payment,
                                  Client client, Mentor mentor)
 {
     return(new Appointment()
     {
         Id = id,
         AppointmentSlot = appointmentSlot,
         Client = client,
         CreatedAt = DateTime.UtcNow,
         Mentor = mentor,
         Payment = payment,
         Status = AppointmentStatus.Pending
     });
 }
Beispiel #2
0
 public static Appointment Create(AppointmentSlot appointmentSlot, Payment payment,
                                  Client client, Mentor mentor)
 {
     return(Create(Guid.NewGuid(), appointmentSlot, payment, client, mentor));
 }