public bool Insert(int FormSubmissionId, int FormFieldId, string Answer, int FormFieldColumnId, int FormFieldValueId, int Grade) { FormSubmissionAnswerDAC formsubmissionanswerComponent = new FormSubmissionAnswerDAC(); int FormSubmissionAnswerId = 0; return(formsubmissionanswerComponent.InsertNewFormSubmissionAnswer(ref FormSubmissionAnswerId, FormSubmissionId, FormFieldId, Answer, FormFieldColumnId, FormFieldValueId, Grade)); }
public bool Insert(FormSubmissionAnswer formsubmissionanswer) { int autonumber = 0; FormSubmissionAnswerDAC formsubmissionanswerComponent = new FormSubmissionAnswerDAC(); bool endedSuccessfuly = formsubmissionanswerComponent.InsertNewFormSubmissionAnswer(ref autonumber, formsubmissionanswer.FormSubmissionId, formsubmissionanswer.FormFieldId, formsubmissionanswer.Answer, formsubmissionanswer.FormFieldColumnId, formsubmissionanswer.FormFieldValueId, formsubmissionanswer.Grade); if (endedSuccessfuly) { formsubmissionanswer.FormSubmissionAnswerId = autonumber; } return(endedSuccessfuly); }