public IActionResult Index(string fullName, string answer = default, string timeTaken = default) { var problemInstanciated = ProblemsRepository.GetSpecificProblemInstance(fullName); var viewModel = new SpecificProblemViewModel { Header = problemInstanciated.Name(), Text = problemInstanciated.Description(), Answer = answer, TimeTaken = timeTaken, RequestedProblemName = fullName }; return(View(viewModel)); }
public void SetContentForTeacherMode (ProblemsRepository.ProblemType problemType) { colourCodingScheme = ProblemsRepository.instance.GetColourCodingSchemeGivenProblemType (problemType); Application.LoadLevel ("Activity"); }