Beispiel #1
0
        public IEnumerable <studentsAnswers> Get(int id)
        {
            studentsAnswers        a  = new studentsAnswers();
            List <studentsAnswers> sa = a.ReadList(id);

            return(sa);
        }
Beispiel #2
0
 public void Post([FromBody] studentsAnswers a)
 {
     try
     {
         a.insert();
     }
     catch (Exception ex)
     {
         throw new Exception("Error in insert" + ex);
     }
 }