Пример #1
0
        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));
        }
Пример #2
0
        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));
        }