コード例 #1
0
        public async Task <IActionResult> PutAsync([FromBody] Employee employee)
        {
            var employeeUpdated = await _employeeService.UpdateAsync(employee);

            return(Ok(employeeUpdated));
        }
コード例 #2
0
        public async Task <IActionResult> PostAsync([FromBody] Employee employee)
        {
            var employeeCreated = await _employeeService.AddAsync(employee);

            return(Ok(employeeCreated));
        }