public ActionResult ContactChild(ContactChildModel contactsEntriesModel) { ViewBag.contactEntriesModel = contactsEntriesModel; var contactChild = Services.ContentService.Create("contacto", 4362, "contactChild"); contactChild.SetValue("nomeCompleto", contactsEntriesModel.NomeCompleto); contactChild.SetValue("email", contactsEntriesModel.Email); contactChild.SetValue("numerodeTelefone", contactsEntriesModel.NumerodeTelefone); contactChild.SetValue("orcamento", contactsEntriesModel.Orcamento); contactChild.SetValue("requisitos", contactsEntriesModel.Requisitos); Services.ContentService.Save(contactChild); return(RedirectToCurrentUmbracoPage()); }
public ActionResult ContactChild(ContactChildModel contactChild) { return(CurrentTemplate(contactChild)); }