protected void btnSave_Click(object sender, EventArgs e) { var fileReceivedBody = FdrCommon.WrapHtmlElement(txtFileReceived.Text); var fileAcceptedBody = FdrCommon.WrapHtmlElement(txtFileAccepted.Text); var fileRejectedBody = FdrCommon.WrapHtmlElement(txtFileRejected.Text); var fileAcceptedWithWarningsBody = FdrCommon.WrapHtmlElement(txtFileAcceptedWithWarnings.Text); var saved = DBWriteManager.SaveMasterLocalFileNotificationEmailBodyTemplates(new MasterLocalFileNotificationEmailBodyTemplate { Id = 0, AcceptedBody = fileAcceptedBody, AcceptedWithWarningsBody = fileAcceptedWithWarningsBody, RejectedBody = fileRejectedBody, ReceivedBody = fileReceivedBody, CreatedBy = Sars.Systems.Security.ADUser.CurrentSID, DateLastModified = DateTime.Now, LastModifiedBy = Sars.Systems.Security.ADUser.CurrentSID }); MessageBox.Show(saved > 0 ? "Master/Local File Notification Email Templates saved successfully" : "Issues reported during saving"); btnSave.Enabled = false; txtFileAccepted.Enabled = false; txtFileRejected.Enabled = false; txtFileReceived.Enabled = false; txtFileAcceptedWithWarnings.Enabled = false; }