예제 #1
0
 public IActionResult Get(long id)
 {
     try
     {
         var result = _magazineService.Get(id);
         return(Ok(result));
     }
     catch (BusinessLogicException exception)
     {
         return(BadRequest(exception.Message));
     }
     catch (Exception exception)
     {
         _logger.LogInformation(exception.Message);
         return(StatusCode((int)HttpStatusCode.InternalServerError));
     }
 }