private void onInsert() { mdc = new Model.Model(); try { Materias_ADD materia = new Materias_ADD(); materia.tbNome.Text = materia.tbNome.Text.Trim(); materia.tbDescricao.Text = materia.tbDescricao.Text.Trim(); materia.tbDataCadrastro.Text = materia.tbDataCadrastro.Text.Trim(); Convert.ToDateTime(tbDataCadrastro); InsertOnSubmit(materia); mdc.change(); Response.Redirect("Materias.aspx"); } catch (Exception) { Response.Redirect("Materias.aspx"); } finally { mdc.Dispose(); } }
private void InsertOnSubmit(Materias_ADD materia) { throw new NotImplementedException(); }