Ejemplo n.º 1
0
        public ActionResult UnblockPaymentAccount(string accountId)
        {
            PaymentAccountService service = new PaymentAccountService();

            if (service.GetPaymentAccountById(accountId).OnUnblocking)
            {
                ViewBag.OnUnblocking = true;
            }

            service.Unblock(accountId);

            var id = service.GetPaymentAccountById(accountId).User.Id;

            return(RedirectToAction("ManagePaymentAccounts", new { userId = id }));
        }