public IActionResult Create([FromBody] CreateGameModel model) { if (model.Size < 0) { return(BadRequest("Board size can't be less than 0.")); } _builder.WithBoardSize(model.Size); var game = _builder.Build(); var report = _simulator.Simulate(_gameHost, game); return(Ok(report)); }