Ejemplo n.º 1
0
        public async Task <IActionResult> GetVoucherByCode(string code)
        {
            var voucher = await _voucherRepository.FindByCode(code);

            if (voucher == null)
            {
                return(NotFound());
            }

            return(CustomResponse(new VoucherDTO().Map(voucher)));
        }