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