public async Task <IActionResult> PutAsync([FromBody] Employee employee) { var employeeUpdated = await _employeeService.UpdateAsync(employee); return(Ok(employeeUpdated)); }
public async Task <IActionResult> PostAsync([FromBody] Employee employee) { var employeeCreated = await _employeeService.AddAsync(employee); return(Ok(employeeCreated)); }