public ExerciseOutput ProcessMockDataOutput(ExerciseOutput output) { var builder = new ExerciseOutputBuilder(output); var viewModel = builder.SetMockQuestionData() .SetMockRankData() .Build(); return(viewModel); }
public IActionResult GetExercise() { try { var output = new ExerciseOutput(); var result = _IExcerciseOutputService.ProcessMockDataOutput(output); return(Ok(result)); } catch (Exception ex) { return(BadRequest()); } }
public ExerciseOutputBuilder(ExerciseOutput output) { _output = output; }