/// <summary>
        /// Creates a new form record from the specified "Contact us" form data, and returns it.
        /// </summary>
        /// <param name="message">The "Contact us" form data.</param>
        /// <returns>The form record created from the specified "Contact us" form data.</returns>
        public TestMvcDemoContactUsItem CreateContactUsFormItem(MessageModel message)
        {
            var item = new TestMvcDemoContactUsItem
            {
                UserFirstName = message.FirstName,
                UserLastName = message.LastName,
                UserEmail = message.Email,
                UserMessage = message.MessageText,
            };

            item.Insert();

            return item;
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="CMS.OnlineForms.Types.TestMvcDemoContactUsItem+TestMvcDemoContactUsItemFields" /> class with the specified content item of type TestMvcDemoContactUsItem.
 /// </summary>
 /// <param name="instance">The content item of type TestMvcDemoContactUsItem that is a target of the extended API.</param>
 public TestMvcDemoContactUsItemFields(TestMvcDemoContactUsItem instance)
 {
     mInstance = instance;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CMS.OnlineForms.Types.TestMvcDemoContactUsItem+TestMvcDemoContactUsItemFields" /> class with the specified content item of type TestMvcDemoContactUsItem.
 /// </summary>
 /// <param name="instance">The content item of type TestMvcDemoContactUsItem that is a target of the extended API.</param>
 public TestMvcDemoContactUsItemFields(TestMvcDemoContactUsItem instance)
 {
     mInstance = instance;
 }