Exemple #1
0
 public static DoctorUnavailabilitySlotAdded Create(Identifier clinicId, TimeSlot slot,
                                                    UnavailabilityCausedBy causedBy, string causedById)
 {
     return(new DoctorUnavailabilitySlotAdded
     {
         ClinicId = clinicId,
         From = slot.From,
         To = slot.To,
         CausedBy = causedBy,
         CausedByReference = causedById,
         ModifiedUtc = DateTime.UtcNow
     });
 }
Exemple #2
0
 public void AddUnavailability(TimeSlot slot, UnavailabilityCausedBy causedBy, string causedByReference)
 {
     RaiseChangeEvent(
         CarsDomain.Events.Car.UnavailabilitySlotAdded.Create(Id, slot, causedBy, causedByReference));
 }