Example #1
0
        public async Task <ActionResult <VotingDto> > Index(Guid id)
        {
            try
            {
                var votingDetail = await _service.GetVoteDetail(id);

                return(Ok(votingDetail));
            }
            catch (Exception ex)
            {
                return(StatusCode((int)HttpStatusCode.InternalServerError, ex));
            }
        }