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); }
public JsonResult Add(Contact ID) { return(Json(ContactDAO.Add(ID), JsonRequestBehavior.AllowGet)); }