Esempio n. 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            Employee emp = new Employee();

            emp.EmployeeId = Convert.ToInt32(textBox1.Text);
            emp.FirstName  = textBox2.Text;
            emp.LastName   = textBox3.Text;
            emp.JobTitle   = textBox4.Text;
            EmployeeDA.Create(emp);
        }
Esempio n. 2
0
 //C
 public Employee Create()
 {
     return(_da.Create());
 }