public ActionResult <bool> Delete(int id) { try { if (_bonusRepository.DeleteBonus(id)) { return(Ok(new Response { Success = true, Message = "The process was successsful" })); } return(BadRequest(new Response { Success = false, Message = "The process was not successsful" })); } catch (Exception) { return(StatusCode(StatusCodes.Status500InternalServerError)); } }