protected void sumit_Click(object sender, EventArgs e) { Contact cb = new Contact(); cb.s_firstname = txtfirstname.Text; cb.lastname = txtlastname.Text; cb.email = txtemail.Text; cb.subject = txtsubject.Text; cb.message = txtmessage.Text; cb.insertviadatareader(); }
public void Add(string firstname, string lastname, string email) { var contact = new Contact { FirstName = firstname, LastName = lastname, EMailAddress1 = email }; _crmUnitOfWork.Add(contact); }
public void Update(Contact contact) { _crmUnitOfWork.Update(contact); }