コード例 #1
0
        public ActionResult SendForm(ContactVM model)
        {
            var cRepo = new ContactRepo();

            cRepo.AddContactDetails(model.Name, model.Email, model.Message);

            var template = UmbracoContext.Application.Services.FileService.GetTemplate(CurrentPage.TemplateId);
            var path     = template.VirtualPath;

            return(View(path, ControllerHelpers.GetHomeModel(CurrentPage, model, true)));
        }