Ejemplo n.º 1
0
        public ActionResult InsertContactUs(ContactUsViewModel viewModel)
        {
            if (!ModelState.IsValid)
            {
                return(CurrentUmbracoPage());
            }

            IPublishedContent publishedContent = GetContentById(CurrentPage.Id.ToString());

            string nextUrl = contactUsManager.InsertContactUs(
                UmbracoContext,
                publishedContent,
                viewModel);

            return(Redirect(nextUrl));
        }