public async Task <IActionResult> ApproveParticipant(int id) { try { var code = await _actionManager.ApproveParticipantAsync(id); return(StatusCode(code)); } catch { return(StatusCode(StatusCodes.Status500InternalServerError)); } }
public async Task <IActionResult> ApproveParticipant(int participantId) { return(StatusCode(await _actionManager.ApproveParticipantAsync(participantId))); }