public async Task <IActionResult> DeleteComment(Guid commentId)
        {
            ApplicationUser applicationUser = await _userManager.GetUserAsync(HttpContext.User);

            Guid currentUserId = new Guid(applicationUser.Id);

            if (!await _repository.ContainsUserAsync(currentUserId))
            {
                return(RedirectToAction("MakeNewProfile", "Main"));
            }
            Comment comment = await _repository.GetCommentByIdAsync(commentId);

            if (comment == null)
            {
                return(View("~/Views/Shared/InvalidAttempt.cshtml"));
            }
            Guid currentPictureId = comment.Picture.Id;

            try
            {
                await _repository.DeleteCommentAsync(comment, currentUserId);
            }
            catch (UnauthorizedAttemptException)
            {
                return(View("~/Views/Shared/InvalidAttempt.cshtml"));
            }
            return(RedirectToAction("Index", new { id = currentPictureId }));
        }