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

            repo.AddDeposit(d);
            return(Redirect("/contributors/index"));
        }