예제 #1
0
 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"
         }));
     }
 }