Esempio n. 1
0
 public IActionResult Index(SurveyResult surveyResult)
 {
     if (!ModelState.IsValid)
     {
         return(BadRequest("An error has occured while processing your request."));
     }
     _dal.SaveNewSurveyResult(surveyResult);
     return(RedirectToAction("surveyresults"));
 }