public void AddEmployee([FromBody] EmployeeDto employee) { _commands.AddEmployee(new Employee() { Name = employee.Name, Department = employee.Department }); }
public async Task <ActionResult <bool> > AddEmployee([FromBody] Employee employee) { return(await _commands.AddEmployee(employee)); }