/// <summary> /// Add contact us data to DB /// </summary> /// <param name="n">Contact</param> /// internal void addContactUsData(ContactModel n) { ContactUs c = new ContactUs(); c.posted = DateTime.Now; c.unread = true; c.subj = n.subj; c.txt = n.txt; c.email = n.email; db.ContactUs.InsertOnSubmit(c); db.SubmitChanges(); }
public ActionResult ContactUsView(ContactModel n) { if(ModelState.IsValid) { monster.addContactUsData(n); return RedirectToAction("ContactUsConfirmation"); } return View(n); }