public IHttpActionResult PostEmployee(Employee employee) { try { DBlayer.InsertEmployee(employee); } catch (DbUpdateException ex) { throw ex; } return(CreatedAtRoute("DefaultApi", new { id = employee.EmployeeID }, employee)); }
public IHttpActionResult PostEmployee(Employee employee) { try { DBlayer.InsertEmployee(employee); } catch (DbUpdateException ex) { throw ex; } return(CreatedAtRoute("DefaultApi", new { id = employee.EmployeeID }, employee)); }