public ActionResult Create([Bind(Include = "Id,EmailTime,EmailTo,EmailFrom,EmailTopic,EmailText")] Emails emails) { if (ModelState.IsValid) { db.InsertEmail(emails.EmailTo, emails.EmailFrom, emails.EmailTopic, emails.EmailText); db.SubmitChanges(); return(RedirectToAction("Index")); } return(View(emails)); }