public override int GetHashCode()
        {
            int hashCode = -2103952962;

            hashCode = hashCode * -1521134295 + EventStartDate.GetHashCode();
            hashCode = hashCode * -1521134295 + EventType.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Location);

            return(hashCode);
        }
 public EventManagementModel With(
     Guid?id = null,
     EventTitle eventTitle                       = null,
     EventDescription description                = null,
     EventLocation eventLocation                 = null,
     EventStartDate eventStartDate               = null,
     EventEndDate eventEndDate                   = null,
     RegistrationOpenDate registrationOpenDate   = null,
     RegistrationCloseDate registrationCloseDate = null
     ) => new EventManagementModel(
     id: id ?? Id,
     title: eventTitle ?? Title,
     description: description ?? Description,
     eventLocation: eventLocation ?? EventLocation,
     eventStartDate: eventStartDate ?? EventStartDate,
     eventEndDate: eventEndDate ?? EventEndDate,
     registrationOpenDate: registrationOpenDate ?? RegistrationOpenDate,
     registrationCloseDate: registrationCloseDate ?? RegistrationCloseDate
     );
 public EventManagementModel(
     Guid id,
     EventTitle title,
     EventDescription description,
     EventLocation eventLocation,
     EventStartDate eventStartDate,
     EventEndDate eventEndDate,
     RegistrationOpenDate registrationOpenDate,
     RegistrationCloseDate registrationCloseDate
     )
 {
     Id                    = id;
     Title                 = title;
     Description           = description;
     EventLocation         = eventLocation;
     EventStartDate        = eventStartDate;
     EventEndDate          = eventEndDate;
     RegistrationOpenDate  = registrationOpenDate;
     RegistrationCloseDate = registrationCloseDate;
 }