예제 #1
0
 public void Save(UmbracoTwenty.Models.ContactFormModel model)
 {
     ContactFormPoco poco = new ContactFormPoco();
     poco.Name = model.Name;
     poco.Email = model.Email;
     poco.Subject = model.Subject;
     poco.Message = model.Message;
     poco.Date = DateTime.Now;
     _database.Insert(poco);
 }
예제 #2
0
        public void Save(UmbracoTwenty.Models.ContactFormModel model)
        {
            ContactFormPoco poco = new ContactFormPoco();

            poco.Name    = model.Name;
            poco.Email   = model.Email;
            poco.Subject = model.Subject;
            poco.Message = model.Message;
            poco.Date    = DateTime.Now;
            _database.Insert(poco);
        }