Esempio n. 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");
        }
Esempio n. 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"));
        }
Esempio n. 3
0
        public ActionResult List(string id)
        {
            WaitingList.WaitingListDataAccess waitingList = new WaitingList.WaitingListDataAccess();
            List<WaitingListModel> models = new List<WaitingListModel>();

            switch (id.ToLower())
            {
                case "alpha":
                    models = waitingList.GetWaitingListAlphabetical();
                    break;
                case "latest":
                    models = waitingList.GetWaitingListByTime();
                    break;
            }

            return View(models);
        }
Esempio n. 4
0
        public ActionResult List(string id)
        {
            WaitingList.WaitingListDataAccess waitingList = new WaitingList.WaitingListDataAccess();
            List <WaitingListModel>           models      = new List <WaitingListModel>();

            switch (id.ToLower())
            {
            case "alpha":
                models = waitingList.GetWaitingListAlphabetical();
                break;

            case "latest":
                models = waitingList.GetWaitingListByTime();
                break;
            }


            return(View(models));
        }