예제 #1
0
        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");
        }
예제 #2
0
        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"));
        }