Esempio n. 1
0
 public ActionResult RsvpForm(GuestResponse guestResponse)
 {
     if (ModelState.IsValid)
     {
         using (ResponseContext db = new ResponseContext())
         {
             db.Responses.Add(guestResponse);
             db.SaveChanges();
         }
         return(View("Thanks", guestResponse));
     }
     else
     {
         return(View());
     }
 }