public TableauSolutionModel( ConversionService conversionService, EventService eventService, TableauSolutionService tableauSolutionService) { ConversionService = conversionService; EventService = eventService; TableauSolutionService = tableauSolutionService; }
public TsController( TableauSolutionService tableauSolutionService, EventService eventService, FormulaValidator formulaValidator) { EventService = eventService; TableauSolutionService = tableauSolutionService; FormulaValidator = formulaValidator; }
public IActionResult SolveTableau([FromBody] TableauInput tableauInput) { if (tableauInput == null || !HasValidFormulas(tableauInput)) { return(BadRequest("The request could not be understood by the server due to malformed syntax.")); } var tableauSolution = TableauSolutionService.ComputeTableauSolution(tableauInput); EventService.LogTableauSolution(tableauSolution); return(Ok(tableauSolution)); }