src/fursvp.api/Controllers/EventController.cs
/// <summary>
/// Retrieves details for an Event.
/// </summary>
/// <param name="id">The globally unique identifier of the Event to update.</param>
/// <returns>An object representing the Event matching the id.</returns>
Retrieves details for an Event.
Retrieves details for an Event .
[HttpGet]
        [Route("{id}")]
        public async Task<IActionResult> GetEvent(Guid id)
        {
            var @event = await EventRepositoryRead.GetById(id).ConfigureAwait(false);
            if (@event == null)
            {
                return NotFound("Event not found with id " + id);
            }
            return Ok(Mapper.MapResponse(@event, DateTimeProvider));
        }
[ HttpGet ] [ Route ( " " ) ] public async Task < IActionResult > GetEvent ( Guid id ) { var @event = await EventRepositoryRead . GetById ( id ) . ConfigureAwait ( false ) ; if ( @event == null ) { return NotFound ( " " + id ) ; } return Ok ( Mapper . MapResponse ( @event , DateTimeProvider ) ) ; }
Retrieves details for an Event.
Retrieves details for an Event .
An object representing the Event matching the id.
An object representing the Event matching the id .
id
Guid
The globally unique identifier of the Event to update.
The globally unique identifier of the Event to update .