public async Task <ActionResult <CommentsDto> > Get(int commentId) { try { var result = await _eventRepository.GetComment(commentId); if (result == null) { return(NotFound()); } var mappedEntity = _mapper.Map <CommentsDto>(result); return(Ok(mappedEntity)); } catch (Exception) { return(this.StatusCode(StatusCodes.Status500InternalServerError, "Database Failure")); } }