public string Post([FromBody] SigneSymptomes value)
 {
     try
     {
         _context.SigneSymptomes.Add(value);
         _context.SaveChanges();
         return("ok");
     }
     catch
     {
         throw;
     }
 }
Exemplo n.º 2
0
        public int Post([FromBody] Resultat value)
        {
            int result = -1;

            try
            {
                _context.Resultat.Add(value);
                _context.SaveChanges();
                result = 1;
            }
            catch
            {
                throw;
            }

            return(result);
        }