예제 #1
0
 public IActionResult Post([FromBody] Empleado emp)
 {
     if (ModelState.IsValid)
     {
         empleadoRepository.Add(emp);
     }
     return(new CreatedAtActionResult("Create", "Empleado", "aaa", new { id = emp.EMPLEADO }));
 }