Exemple #1
0
 public IHttpActionResult Post([FromBody] Submission surveySubmission)
 {
     try
     {
         var submissionRepository = new SubmissionRepository();
         submissionRepository.ConsumeUserSurvey(surveySubmission);
         submissionRepository.InsertSubmission(surveySubmission);
         return(Ok(surveySubmission));
     }
     catch (Exception ex)
     {
         return(InternalServerError(ex));
     }
 }