Beispiel #1
0
        public async Task<ActionResult> Index(EdStartEmail model)
        {
            string result = "";
            Email_Service es = new Email_Service();
            if (!ModelState.IsValid)
            {
                result = ModelState.Values.First().Errors.First().ErrorMessage;
            }
            else
            {
                if (es.EmailInteresting(model.Message))
                    result = "Your email has been added to our invite list. Thanks!";
                else
                    result = "Please try again !";
            }

            ViewBag.message = result ;
            return View();
        }
Beispiel #2
0
        public ActionResult About(EdStartEmail a)
        {
            ViewBag.Message = "Your application description page.";

            return View();
        }