Пример #1
0
        public ActionResult Edit(Guid id)
        {
            var paymentMethod = paymentMethodRepository.GetPaymentMethodById(id);

            PaymentMethodVM model = new PaymentMethodVM();

            if (paymentMethod != null && paymentMethod.Count > 0)
            {
                model = paymentMethod[0];

                return(View(model));
            }

            return(RedirectToAction("List"));
        }