Exemple #1
0
        public SubmissionResponse ExecuteSubmission([FromBody] BaseSubmissionDto baseSubmissionDto)
        {
            try
            {
                var baseSubmission = new BaseSubmission()
                {
                    Nickname = baseSubmissionDto.Nickname,
                    Solution = baseSubmissionDto.Solution,
                    TaskId   = baseSubmissionDto.TaskId
                };

                var result = _submissionsService.ExecuteFiddleAsync(baseSubmission).Result;

                return(result);
            }
            catch (Exception exception)
            {
                _logger.LogError(exception.Message);
                throw;
            }
        }