public ActionResult Create(team team) { try { UpdateModel(team); teamRepository.Add(team); teamRepository.Save(); return RedirectToAction("Index", new { id = team.id_team }); } catch { return View(team); } }
// // GET: /AdminTeam/Create public ActionResult Create() { team team = new team(); return View(team); }
partial void Updateteam(team instance);
partial void Deleteteam(team instance);
partial void Insertteam(team instance);
private void detach_teams(team entity) { this.SendPropertyChanging(); entity.team_group = null; }
private void attach_teams(team entity) { this.SendPropertyChanging(); entity.team_group = this; }
public void Delete(team team) { db.teams.DeleteOnSubmit(team); }
public void Add(team team) { db.teams.InsertOnSubmit(team); }