public IActionResult getByDate(string date)
 {
     try
     {
         if (!string.IsNullOrEmpty(date))
         {
             var dateTime = DateTime.Parse(date);
             return(Ok(_transactionsService.GetByDateRange(dateTime)));
         }
         else
         {
             return(BadRequest("Incorrect Date format"));
         }
     }
     catch (Exception ex)
     {
         return(StatusCode(StatusCodes.Status500InternalServerError, ex.Message));
     }
 }