Example #1
0
        private void DoAdd()
        {
            var emp = new Employee(EmployeeId, EmployeeFirstName, EmployeeLastName);

            Dal.AddEmployee(emp);
            DoRetreive();
        }
Example #2
0
        public void Post(HttpContext context)
        {
            byte[] postData = context.Request.BinaryRead(context.Request.ContentLength);

            Employee emp = Deserialize(postData);

            _dal.AddEmployee(emp);
        }
 public int AddEmployee(string employeeNumber, string firstname, string lastname)
 {
     return(Dal.AddEmployee(employeeNumber, firstname, lastname));
 }