Example #1
0
 public ActionResult Edit(Team team)
 {
     if (ModelState.IsValid)
     {
         teamService.SaveTeam(team);
         return RedirectToAction("Index");
     }
     return View(team);
 }
Example #2
0
 public void SaveTeam(Team user)
 {
     teamRepository.SaveTeam(user);
 }
Example #3
0
 public void DeleteTeam(Team user)
 {
     teamRepository.DeleteTeam(user.Id);
 }