public IActionResult GetWeights() { if (_neuron == null) { return(null); } if (_neuron.GetResult()) { _neuron.SubtractInputValuesFromWeight(); } else { _neuron.AddInputValueToWeight(); } _txtService.SaveNumbersArray(_filePath, _neuron.Weights); UploadWeights(); return(Json(_weights)); }