public ActionResult HandleFormPost(contactModel model) { var newComment = Services.ContentService.CreateContent(model.Name + "." + DateTime.Now, CurrentPage.Id, "ContactFormula"); newComment.SetValue("emailForm", model.Email); newComment.SetValue("contactName", model.Name); newComment.SetValue("contactMessage", model.Message); Services.ContentService.SaveAndPublishWithStatus(newComment); return RedirectToCurrentUmbracoPage(); }
public ActionResult ShowForm() { contactModel myModel = new contactModel(); return PartialView("ContactForm", myModel); }