src/fursvp.domain/EventService.cs
/// <summary>
/// Determines whether attendees can RSVP to an <see cref="Event"/>.
/// </summary>
/// <param name="event">The <see cref="Event"/>.</param>
/// <returns>True if attendees can currently RSVP, otherwise False.</returns>
Determines whether attendees can RSVP to an .
Determines whether attendees can RSVP to an .
public bool RsvpOpen(Event @event)
        {
            if (@event?.RsvpOpen != true)
            {
                return false;
            }
            return DateTimeProvider.Now < @event.RsvpClosesAtUtc?.ToUtc(@event.TimeZoneId);
        }
public bool RsvpOpen ( Event @event ) { if ( @event ? . RsvpOpen != true ) { return false ; } return DateTimeProvider . Now < @event . RsvpClosesAtUtc ? . ToUtc ( @event . TimeZoneId ) ; }
Determines whether attendees can RSVP to an .
Determines whether attendees can RSVP to an .
True if attendees can currently RSVP, otherwise False.
True if attendees can currently RSVP otherwise False .
@event
Event
event
None