Example #1
0
 public Task <Employee> Handle(AddEmployeeCommand request, CancellationToken cancellationToken)
 {
     return(Task.FromResult(_dataAccess.AddEmployee(request.FirstName, request.LastName,
                                                    request.Department, request.Salary)));
 }
 public int AddEmployee(Employee emp)
 {
     return(_employeedata.AddEmployee(emp));
 }
 public bool addEmployee(Employee employee)
 {
     return(dataAccess.AddEmployee(employee));
 }