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 }); }
public void AddUnavailability(TimeSlot slot, UnavailabilityCausedBy causedBy, string causedByReference) { RaiseChangeEvent( CarsDomain.Events.Car.UnavailabilitySlotAdded.Create(Id, slot, causedBy, causedByReference)); }