Example #1
0
        public ActionResult Create([Bind(Include = "Id,FirstName,LastName,Email,SubscribeDate")] SubscriberInfo subscriberInfo)
        {
            if (ModelState.IsValid)
            {
                db.SubscriberInfoes.Add(subscriberInfo);
                db.SaveChanges();
                return(RedirectToAction("Index", "Home"));
            }

            return(View(subscriberInfo));
        }