Exemplo n.º 1
0
        public virtual async Task <ActionResult> Edit(PaymentMethodEditViewModel model)
        {
            if (!ModelState.IsValid)
            {
                return(View(model));
            }

            model.CreatorID = await GetCurrentUserIdAsync();

            _paymentMethodService.EditPaymentMethod(model);
            return(RedirectToAction(MVC.Home.ActionNames.Index, MVC.Home.Name));
        }