public ActionResult Add(int ChildUserID) { var model = new AddMoney() { ChildUserID = ChildUserID }; return View(model); }
public ActionResult Add(AddMoney AddMoney) { if (!ModelState.IsValid) { return View(); } var user = userSession.GetCurrent(); var child = childManager.GetChild(user, AddMoney.ChildUserID); transactionManager.AddMoney(child, AddMoney.Amount); return RedirectToAction("Dashboard", "Leader"); }