public IActionResult Get()
 {
     try
     {
         return(Ok(_repository.GetAllOrders()));
     }
     catch (Exception ex)
     {
         _logger.LogError($"Failded to get orders: {ex}");
         return(BadRequest("Failed to get orders"));
     }
 }