public async Task <IActionResult> AddCommentViaId(CreateCommentWithIdRequestResource CreateCommentWithIdRequestResource)
        {
            var newComment = _mapper.Map <Comment>(CreateCommentWithIdRequestResource);

            var user = await _iUnitOfWork.Users.GetWithPersonalDetails(TokenFunctions.GetUserId(User));

            if (user == null)
            {
                return(Unauthorized("It seems you are not logged in"));
            }

            var problemBeta = await _iUnitOfWork.ProbBeta.GetEntity(CreateCommentWithIdRequestResource.ProblemId);

            if (problemBeta == null)
            {
                return(BadRequest("We could not find the problem to add a comment"));
            }

            newComment.User        = user;
            newComment.ProblemBeta = problemBeta;

            await _iUnitOfWork.Comments.Add(newComment);

            await _iUnitOfWork.Complete();

            return(Ok(_mapper.Map <CommentResponseResource>(newComment)));
            // return Ok(CreateCommentWithIdRequestResource);
        }
        public async Task <IActionResult> LikeProblemBetaWithId(LikeProblemBetaWithIdRequestResource likeProblemBetaWithIdRequestResource)
        {
            var user = await _unitOfWork.Users.GetEntity(TokenFunctions.GetUserId(User));

            if (user == null)
            {
                return(BadRequest("It seems we cannot find you"));
            }

            var result = await _unitOfWork.Likes.UpdateLike(user.Id, likeProblemBetaWithIdRequestResource.ProblemId);

            await _unitOfWork.Complete();


            return(Ok(new { data = result }));
        }