public ActionResult CreateMobileOperation(MobileOperation operation, FormCollection form) { return CreateOperation(operation, form); }
public ActionResult CreateReplenishment(MobileOperation operation) { if (ModelState.IsValid) { try { PaymentService.ReplenishAccount(operation, _factory, User.Identity.GetUserId()); TempData["SuccessMessage"] = "Платеж успешно осуществен."; return RedirectToAction("Index", "Home"); } catch (ValidationException e) { ModelState.AddModelError(e.Property, e.Message); } } ViewBag.Accounts = AccountService.GetAccounts(_factory, User.Identity.GetUserId()) .Select(t => new SelectListItem { Value = t.Item1, Text = t.Item2 }); return View(operation); }