コード例 #1
0
 public IActionResult AddEmployee([FromBody] SmartIT.Employee.MockDB.Employee item)
 {
     if (item == null)
     {
         return(BadRequest());
     }
     else
     {
         db.Add(item);
         return(new CreatedResult($"/api/AddEmployee", item));
     }
 }