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