Exemplo n.º 1
0
        public async Task <IActionResult> PutAsync([FromBody] Employee employee)
        {
            var employeeUpdated = await _employeeService.UpdateAsync(employee);

            return(Ok(employeeUpdated));
        }
Exemplo n.º 2
0
        public async Task <IActionResult> PostAsync([FromBody] Employee employee)
        {
            var employeeCreated = await _employeeService.AddAsync(employee);

            return(Ok(employeeCreated));
        }