public ActionResult Index(SignupModel model) { if (ModelState.IsValid) { // Insert email into the waiting list on Azure Table Service WaitingList.WaitingListDataAccess waitingList = new WaitingList.WaitingListDataAccess(); waitingList.AddToWaitingList(model.Email); } else { return View(model); } return RedirectToAction("Success"); }
public ActionResult Index(SignupModel model) { if (ModelState.IsValid) { // Insert email into the waiting list on Azure Table Service WaitingList.WaitingListDataAccess waitingList = new WaitingList.WaitingListDataAccess(); waitingList.AddToWaitingList(model.Email); } else { return(View(model)); } return(RedirectToAction("Success")); }