public ActionResult AddContributor(Contributor c, Deposit d) { _mgr.AddContributor(c); d.ContributorId = c.Id; _mgr.AddDeposit(d); return(Redirect("/contributors/index")); }
public IActionResult Deposit(decimal amount, DateTime date, int contributerId) { DbManager db = new DbManager(_connectionString); db.AddDeposit(amount, date, contributerId); return(Redirect("/contributers/contributers")); }