public HttpResponseMessage Study(int id, List <SymptomModel> symptoms) { var symptomsPoco = new List <KeyValuePair <Symptom, int> >(); var logic = new NeuralLogic(); symptoms.ForEach(t => symptomsPoco.Add(new KeyValuePair <Symptom, int>(logic.getSymptoms(t.id).First(), 1))); logic.study(symptomsPoco, id); return(Request.CreateResponse(HttpStatusCode.OK)); }
public HttpResponseMessage GetFullAnswer(List <SymptomModel> symptoms) { var symptomsPoco = new List <KeyValuePair <Symptom, int> >(); var logic = new NeuralLogic(); symptoms.ForEach(t => symptomsPoco.Add(new KeyValuePair <Symptom, int>(logic.getSymptoms(t.id).First(), 1))); var ressult = logic.fullAnswer(symptomsPoco); return(Request.CreateResponse(HttpStatusCode.OK, ressult)); }
public ActionResult Study(int id) { string name = ""; ViewBag.Title = "Обучение диагноза"; name = new NeuralLogic().getDiagnoses(id).First().name; return(View(new UniversalViewModel { id = id, name = name })); }
public ActionResult ManageGroup(int?id) { string name = ""; if (id.HasValue) { ViewBag.Title = "Редактирование группы"; name = new NeuralLogic().getGroups(id).First().name; } else { ViewBag.Title = "Создание группы"; } return(View(new UniversalViewModel { id = id, name = name })); }
public HttpResponseMessage Group(GroupModel model) { var group = new NeuralLogic().manageGroup(model).toModel(); return(Request.CreateResponse(HttpStatusCode.OK, group)); }
public HttpResponseMessage Departament(DepartamentModel model) { var departament = new NeuralLogic().manageDepartament(model).toModel(); return(Request.CreateResponse(HttpStatusCode.OK, departament)); }
public HttpResponseMessage Symptom(SymptomModel model) { var symptom = new NeuralLogic().manageSymptom(model).toModel(); return(Request.CreateResponse(HttpStatusCode.OK, symptom)); }
public HttpResponseMessage Diagnos(DiagnosModel model) { var diagnos = new NeuralLogic().manageDiagnos(model).toModel(); return(Request.CreateResponse(HttpStatusCode.OK, diagnos)); }