public ActionResult Delete([FromRoute] int id) { try { if (_chinookSupervisor.GetEmployeeById(id) == null) { return(NotFound()); } if (_chinookSupervisor.DeleteEmployee(id)) { return(Ok()); } return(StatusCode(500)); } catch (Exception ex) { return(StatusCode(500, ex)); } }