public ActionResult SubmitForm(ContactForm form)
        {
            form.DateSubmitted = DateTime.Now;

            var repo = new CustomFormRepo();
            repo.Insert(form);
            return CurrentUmbracoPage();
        }
        public ActionResult SubmitForm(ContactForm form)
        {
            form.DateSubmitted = DateTime.Now;

            var repo = new CustomFormRepo();

            repo.Insert(form);
            return(CurrentUmbracoPage());
        }
        public IEnumerable<CustomForm> GetAll(string formName)
        {
            var repo = new CustomFormRepo();

            // [Custom form setup]: Add forms in here
            switch(formName)
            {
                case "OtherForm":
                    return repo.GetAll<OtherForm>();
                case "ContactForm":
                default:
                    return repo.GetAll<ContactForm>();
            }         
        }
Beispiel #4
0
        public IEnumerable <CustomForm> GetAll(string formName)
        {
            var repo = new CustomFormRepo();

            // [Custom form setup]: Add forms in here
            switch (formName)
            {
            case "OtherForm":
                return(repo.GetAll <OtherForm>());

            case "ContactForm":
            default:
                return(repo.GetAll <ContactForm>());
            }
        }
        public IList <ContactForm> GetAll()
        {
            var repo = new CustomFormRepo();

            return(repo.GetAll <ContactForm>());
        }
 public IList<ContactForm> GetAll()
 {
     var repo = new CustomFormRepo();
     return repo.GetAll<ContactForm>();
 }