private void DoAdd() { var emp = new Employee(EmployeeId, EmployeeFirstName, EmployeeLastName); Dal.AddEmployee(emp); DoRetreive(); }
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)); }