Пример #1
0
        public async Task <ActionResult> UpdateVoucherExpiryDate([FromRoute] string code, [FromQuery] DateTime newDate)
        {
            var pathedVoucher = await baseVoucherService.UpdateVoucherExpiryDate(code, newDate);

            if (pathedVoucher == null)
            {
                return(new StatusCodeResult(500));
            }

            return(new OkObjectResult(pathedVoucher));
        }