public void Initialize() { _userInput = new UserInput(); _userInput.ApplicationUserInput(); _gridService = new GridService(_userInput.Rows, _userInput.Cols); _gridService.CreateGrid(_userInput.Rows, _userInput.Cols); }
public async Task <ActionResult> CreateGrid([FromBody] Grid createGrid) { var grid = await _gridService.CreateGrid(createGrid); return(Ok(new { grid.Id })); }