private EmailList CreateEmailList() { EmailList e = new EmailList(); e.Name = TextBoxName.Text; e.Email = TextBoxEmail.Text; //TODO: Add code to add collection of tags return(e); }
protected void ButtonSubmitEmail_Click(object sender, EventArgs e) { Trigger4.AppCode.EmailListModel model = new Trigger4.AppCode.EmailListModel(); EmailList el = CreateEmailList(); LabelSuccess.Text = model.InsertEmailList(el); ClearFields(); }