public ActionResult ConfirmSSIS(SSISPaymentModel paymentInfo, FormCollection collcetion) { if (paymentInfo.CardAccountID == 0) { return(RedirectToAction("Index")); } if (paymentInfo.ToOwnPayments) { OwnPaymentsModule.AddSSISyOwnPayment(paymentInfo, rep, WebSecurity.CurrentUserId); } SSISTransaction t = new SSISTransaction(); t.Amount = paymentInfo.Amount; t.CardAccountID = paymentInfo.CardAccountID; t.CustomerID = WebSecurity.CurrentUserId; t.Date = Time.GetTime(); t.Number = paymentInfo.Number; t.SSISPaymentID = paymentInfo.SSISPaymentID; t.Type = PaymentType.SSIS; bool success = service.CreateSSISTransaction(t); if (success) { return(View("Message", (object)"Платеж успешно завершен")); } else { return(View("Message", (object)"Что то пошло не так. Попробуйте еще раз")); } }