public IActionResult Delete(int id) { int success = records.DeleteActorById(id); if (success == 1) { return(Ok()); } return(BadRequest()); }