コード例 #1
0
 public IActionResult GetAll()
 {
     try
     {
         return(Ok(_Business.GetAll()));
     }
     catch (Exception ex)
     {
         AppLogger.Error(ex.Message, ex);
         return(StatusCode(Microsoft.AspNetCore.Http.StatusCodes.Status500InternalServerError, ex.Message));
     }
 }