public async Task <ActionResult <BonusDto> > GetBonusById(int id) { try { return(Ok(await _bonusRepository.GetBonusById(id))); } catch (Exception) { return(StatusCode(StatusCodes.Status500InternalServerError, new Response { Success = false, Message = "Server Error" })); } }