Пример #1
0
        public async Task <IActionResult> DeactivateCoupon(Guid?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            await _couponService.DeactivateCouponAsync(id.Value);

            return(RedirectToAction(nameof(Index)));
        }