Ejemplo n.º 1
0
        public async Task <IActionResult> GetMany()
        {
            var refunds = await Task.Run(() => _refunds.GetMany());

            if (refunds == null)
            {
                refunds = new List <Refund>();
            }

            return(new ObjectResult(new RefundsResponse
            {
                Refunds = refunds.Select(r => new RefundDto(r)).ToList(),
            }));
        }