public async Task <IActionResult> GetAllTransactionsByStatusAsync([Required] TransactionStatusValue statusValue)
        {
            var result = await _mediator.Send(new TransactionsByStatusQuery
            {
                TransactionStatus = statusValue
            });

            return(Ok(_mapper.Map <IReadOnlyCollection <TransactionViewModel> >(result)));
        }
 public async Task <IReadOnlyCollection <TransactionDto> > GetAllTransactionsByStatusValueAsync(TransactionStatusValue statusValue)
 {
     return(await _context.Transactions
            .AsNoTracking()
            .Where(x => x.TransactionStatusId == statusValue)
            .ProjectTo <TransactionDto>(_mapper.ConfigurationProvider)
            .ToListAsync());
 }
 public static string ToUnifiedFormat(this TransactionStatusValue value) => value switch
 {