private void submitformButton_Click(object sender, EventArgs e) { var formToSubmit = new GovtForm {FormInformation = formTextbox.Text, UserName = Auth.GetCurrentUsername()}; GovtFormService.SubmitForm(formToSubmit); RefreshGovtForms(); formTextbox.Text = ""; MessageBox.Show("Your form has been submitted!"); }
public void SubmitForm(GovtForm form) { _govtFormsDatabase.Add(form); }