public Operation Python(Operation operation) { _drawService.SaveFiles(operation); var pythonResponse = _pythonService.Process(_drawService.GetPath()); _drawService.Delete(); var predictions = _pythonService.ParseResponse(pythonResponse); _drawService.MapPredictions(operation.Number1, predictions); _drawService.MapPredictions(operation.Number2, predictions); return(_operationService.GetComputedOperation(operation)); }
public IActionResult Delete(int id) { var result = _drawService.Delete(id); return(Ok(_mapper.ToDTO(result))); }