public IActionResult getByStatus(TransactionStatus status)
 {
     try
     {
         return(Ok(_transactionsService.GetByStatus(status)));
     }
     catch (Exception ex)
     {
         return(StatusCode(StatusCodes.Status500InternalServerError, ex.Message));
     }
 }