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