Exemple #1
0
        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);
            }
        }
Exemple #2
0
 //
 // 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;
		}
Exemple #8
0
 public void Delete(team team)
 {
     db.teams.DeleteOnSubmit(team);
 }
Exemple #9
0
 public void Add(team team)
 {
     db.teams.InsertOnSubmit(team);
 }