コード例 #1
0
        public ActionResult PaymentMethod(int?id)
        {
            PaymentMethodModel paymentMethodModel = new PaymentMethodModel();

            if (UserRolePermissionForPage.Add == true || UserRolePermissionForPage.Edit == true)
            {
                if (id > 0)
                {
                    int paymentMethodId = Convert.ToInt32(id);
                    paymentMethodModel = _iPaymentMethodService.GetAddonesById(paymentMethodId);
                }

                return(View(paymentMethodModel));
            }
            else
            {
                return(RedirectToAction("NotFound", "Error"));
            }
        }