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