Example #1
0
 /// <summary>
 /// Get and return list of options from database by student id and survey id.
 /// </summary>
 /// <param name="studentId"></param>
 /// <param name="surveyId"></param>
 /// <returns></returns>
 public List <SurveyResults> GetSurveyResults(int studentId, int surveyId, out ErrorResponse error)
 {
     try
     {
         error = new ErrorResponse(Errors.OK);
         return(_dbManager.GetSurveyResults(studentId, surveyId));
     }
     catch
     {
         error = new ErrorResponse(Errors.DATA_BASE_ERROR);
         return(null);
     }
 }