public IStatusCodeActionResult DeleteBookOrders() { try { _deleteBookOrdersUseCase.Execute(); } catch (Exception) { return(StatusCode(500)); } return(Ok()); }
public IHttpActionResult DeleteBookOrders() { try { _deleteBookOrdersUseCase.Execute(); } catch (Exception) { return(InternalServerError()); } return(Ok()); }
public IHttpActionResult DeleteBookOrders() { try { _deleteBookOrdersUseCase.Execute(); } catch (Exception ex) { Log.Error(ex, "Exception occurred while deleting book orders"); return(InternalServerError()); } return(Ok()); }
public IStatusCodeActionResult DeleteBookOrders() { try { _deleteBookOrdersUseCase.Execute(); } catch (Exception ex) { Log.Error(ex, "Exception occurred while deleting book orders"); return(StatusCode(500)); } return(Ok()); }