public async Task <ActionResult <ContestViewDto> > ViewRegistrations(int id) { try { return(Ok(await _service.GetRegistrationInfosAsync(id))); } catch (NotFoundException e) { return(NotFound(e.Message)); } catch (UnauthorizedAccessException e) { return(Unauthorized(e.Message)); } }