//insert new message public bool insertMessage(Guid id, string _fname, string _lname, string _email, string _phone, string _message, string _subject, //bool isChecked, DateTime _contactDate) { contactUsDataContext objMessages = new contactUsDataContext(); using (objMessages) { brdhc_ContactUs objNewMessage = new brdhc_ContactUs(); objNewMessage.ContactMessageId = Guid.NewGuid(); objNewMessage.FirstName = _fname; objNewMessage.LastName = _lname; objNewMessage.Email = _email; objNewMessage.Phone = _phone; objNewMessage.Message = _message; objNewMessage.Subject = _subject; //objNewMessage.IsChecked = isChecked; objNewMessage.ContactDate = _contactDate; objMessages.brdhc_ContactUs.InsertOnSubmit(objNewMessage); objMessages.SubmitChanges(); return true; } }
partial void Deletebrdhc_ContactUs(brdhc_ContactUs instance);
partial void Updatebrdhc_ContactUs(brdhc_ContactUs instance);
partial void Insertbrdhc_ContactUs(brdhc_ContactUs instance);