Beispiel #1
0
        public bool Insert(int UserId, bool IsAnonymous, DateTime SubmissionDate, string IPAddress, bool IsValid, bool EmailSent, bool SMSSent, int FormDocumentID)
        {
            FormSubmissionDAC formsubmissionComponent = new FormSubmissionDAC();
            int FormSubmissionId = 0;

            return(formsubmissionComponent.InsertNewFormSubmission(ref FormSubmissionId, UserId, IsAnonymous, SubmissionDate, IPAddress, IsValid, EmailSent, SMSSent, FormDocumentID));
        }
Beispiel #2
0
        public bool Insert(FormSubmission formsubmission)
        {
            int autonumber = 0;
            FormSubmissionDAC formsubmissionComponent = new FormSubmissionDAC();
            bool endedSuccessfuly = formsubmissionComponent.InsertNewFormSubmission(ref autonumber, formsubmission.UserId, formsubmission.IsAnonymous, formsubmission.SubmissionDate, formsubmission.IPAddress, formsubmission.IsValid, formsubmission.EmailSent, formsubmission.SMSSent, formsubmission.FormDocumentID);

            if (endedSuccessfuly)
            {
                formsubmission.FormSubmissionId = autonumber;
            }
            return(endedSuccessfuly);
        }