public IActionResult Create(string id) { var problem = problemsService.GetProblemById(id); if (problem == null) { return(this.Redirect("/")); } var result = new ProblemViewModel { ProblemId = problem.Id, Name = problem.Name }; return(this.View(result)); }