public IActionResult AddContributor(Contributor contributor, Deposit deposit) { _repo.AddContributor(contributor); deposit.ContributorId = contributor.Id; _repo.AddDeposit(deposit); return(Redirect("/home/displaycontributors")); }
public IActionResult AddDeposit(Deposit d) { var repo = new SimchaRepository(_connectionString); repo.AddDeposit(d); return(Redirect("/contributors/index")); }