public ActionResult Create([Bind(Include = "IdEnnemi,NomEnemi,AtkEnnemi,SpeedEnnemi,PvEnnemi,Isboss")] Ennemi ennemi) { if (ModelState.IsValid) { db.Ennemi.Add(ennemi); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(ennemi)); }
public ActionResult Create([Bind(Include = "IdPersonnage,NomPersonnage,Classe,SpeedPerso,HpPeso,DescriptionPerso,AtkPerso")] Personnage personnage) { if (ModelState.IsValid) { db.Personnage.Add(personnage); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(personnage)); }
public ActionResult Create([Bind(Include = "IdType,NomType")] TypeItem typeItem) { if (ModelState.IsValid) { db.TypeItem.Add(typeItem); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(typeItem)); }
public ActionResult Create([Bind(Include = "IdDonjon,NomDonjon,DecriptionDonjon")] Donjon donjon) { if (ModelState.IsValid) { db.Donjon.Add(donjon); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(donjon)); }
public ActionResult Create([Bind(Include = "Iditem,AtkItem,SpeedItem,HpItem")] EffetItem effetItem) { if (ModelState.IsValid) { db.EffetItems.Add(effetItem); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(effetItem)); }
public ActionResult Create([Bind(Include = "IdSalle,NomSalle,TypeSalle,TexteSalle")] Salle salle) { if (ModelState.IsValid) { salle.IdSalle = db.Salle.Count() + 1; db.Salle.Add(salle); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(salle)); }
public ActionResult Create([Bind(Include = "IdItem,NomItem,AtkItem,SpeedItem,HpItem,Description")] Item item) { if (ModelState.IsValid) { item.IdItem = db.Item.Count() + 1; db.Item.Add(item); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(item)); }