示例#1
0
        public bool AddContact(GeneralDTO model)
        {
            Contact contact = new Contact();

            contact.Subject        = model.Subject;
            contact.NameSurname    = model.Name;
            contact.Email          = model.Email;
            contact.Message        = model.Message;
            contact.AddDate        = DateTime.Now;
            contact.LastUpdateDate = DateTime.Now;
            dao.Add(contact);
            return(true);
        }
示例#2
0
 public JsonResult Add(Contact ID)
 {
     return(Json(ContactDAO.Add(ID), JsonRequestBehavior.AllowGet));
 }