Esempio n. 1
0
        public IActionResult GetAllComments(int submissionId)
        {
            string userId = _userManager.GetUserId(User);

            try
            {
                var commentsList = _projectLogic.GetAllComments(userId, submissionId);
                return(Json(commentsList));
            }
            catch (NotFoundException)
            {
                return(NotFound());
            }
        }