Example #1
0
 public ActionResult TakeSurvey(Survey s)
 {
     if (!ModelState.IsValid)
     {
         return(View("TakeSurvey", s));
     }
     else
     {
         sDAL.GetList();
         sDAL.InsertSurvey(s);
         return(RedirectToAction("Favorites"));
     }
 }