public IActionResult Create(SubmissionsCreateInputModel model)
        {
            if (!this.ModelState.IsValid)
            {
                return(this.Redirect("/Submissions/Create"));
            }

            this.submissionsService.Create(model.Code, this.User.Id, model.ProblemId);

            return(this.Redirect("/"));
        }
        public IActionResult Create(SubmissionsCreateInputModel model)
        {
            var currentProblem = this
                                 .problemService
                                 .GetProblemById(model.Id);
            var createModel = new SubmissionsCreateHtmlModel
            {
                Name      = currentProblem.Name,
                ProblemId = currentProblem.Id
            };

            return(this.View(createModel));
        }