public async Task <IActionResult> CreateParticipantAsync(ParticipantDTO participantDTO) { if (!ModelState.IsValid) { return(Ok(ModelState)); } var id = await participantService.CreateParticipantAsync(participantDTO); return(Ok(id)); }
public async Task <ActionResult <Participant> > Create([FromBody] Participant dto) { return(await _participantService.CreateParticipantAsync(dto)); }