예제 #1
0
        public async Task <IActionResult> Edit(Coupon model)
        {
            if (ModelState.IsValid)
            {
                var file = HttpContext.Request.Form.Files;
                if (!await iCouponRepository.EditCouponPost(file, model))
                {
                    return(NotFound());
                }

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

            return(View(model));
        }