public Key(string userEmail, KeyAppointment keyAppointment, int value = 0) { Value = value; Used = false; UserEmail = userEmail; Appointment = keyAppointment; }
public KeyDto(bool used, int value, string userEmail, KeyAppointment appointment) { Used = used; Value = value; UserEmail = userEmail; Appointment = appointment; }
internal Key(string userEmail, KeyAppointment keyAppointment, bool used, int value = 0) { Value = value; Used = false; UserEmail = userEmail; Appointment = keyAppointment; Used = used; }
public WrongKeyAppointmentException(KeyAppointment wrongType) : base($"Wrong type of using key: {wrongType}") { }