public IActionResult AddParticipant([FromBody] NewParticipant newParticipant) { Event myEvent = eventsService.AddParticipantToEvent(newParticipant); if (myEvent == null) { return(BadRequest("Coś poszło nie tak. Upewnij się, że nie jesteś już zapisany na to wydarzenie.")); } return(Ok()); }