Exemple #1
0
        public IActionResult GetFile(int submissionId, [FromQuery] string file)
        {
            string userId = _userManager.GetUserId(User);

            try
            {
                var fileVm = _projectLogic.GetFileContent(userId, submissionId, file);
                return(Json(fileVm));
            }
            catch (NotFoundException)
            {
                return(NotFound());
            }
        }