public APIResponse SubmitForm(GeneralRegistrationFormSubmission form) { try { Guid newObjectId = k12Repository.Insert( new SubmittedGeneralRegistrationForm(form) ); return(new APIResponse(true, newObjectId)); } catch (Exception ex) { return(new APIResponse(false, new List <string>() { "Exception occurred when submitting form: " + ex.Message })); } }
public SubmittedGeneralRegistrationForm(GeneralRegistrationFormSubmission Form) { this.Form = Form; }