Exemplo n.º 1
0
        public IActionResult UpdateContributions(List <SimchaContribution> contributors, int simchaId)
        {
            var repo = new SimchaRepository(_connectionString);

            repo.UpdateContributions(simchaId, contributors);
            return(RedirectToAction("Index"));
        }
Exemplo n.º 2
0
 public IActionResult UpdateContributions(IEnumerable <SimchaContributor> contributors, int id)
 {
     _repo.DeleteContributions(id);
     _repo.UpdateContributions(contributors, id);
     return(Redirect("/"));
 }