public IActionResult Get() { List <OrderRecord> orders; try { orders = _ordersServices.GetAllOrders().ToList(); } catch (Exception oEx) { // TODO: if I have time to add logging //_staticLoggerInstanceWrapper.LogError(GetType(), oEx); return(StatusCode(StatusCodes.Status500InternalServerError, oEx)); } return(Ok(orders)); }