// POST api/<controller>
 public void Post([FromBody] StudentLikes s)
 {
     try
     {
         s.InsertLike();
     }
     catch (Exception ex)
     {
         throw new Exception("error with Put Like" + ex);
     }
 }
 public List <StudentLikes> Get(string studentId)
 {
     try
     {
         StudentLikes s = new StudentLikes();
         return(s.CheckLikes(studentId));
     }
     catch (Exception ex)
     {
         throw new Exception("error with check Like" + ex);
     }
 }
 // GET api/<controller>
 public StudentLikes Get(int questionId, string studentId)
 {
     try
     {
         StudentLikes s = new StudentLikes();
         return(s.GetLikes(questionId, studentId));
     }
     catch (Exception ex)
     {
         throw new Exception("error with check Like" + ex);
     }
 }
 // DELETE api/<controller>/5
 public void Delete([FromBody] StudentLikes s)
 {
     s.DeleteLike();
 }