public IHttpActionResult Post(Employee newEmployee) { mediator.Send(new SaveEmployeeCommand(newEmployee)); return Ok(); }
public IHttpActionResult Put(int id, Employee employee) { mediator.Send(new UpdateEmployeeCommand(id, employee)); return Ok(); }
public SaveEmployeeCommand(Employee newEmployee) { this.Employee = newEmployee; }