예제 #1
0
 public IActionResult Create(NPC npc)
 {
     db.NPCs.Add(npc);
     db.SaveChanges();
     return(RedirectToAction("Index"));
 }
예제 #2
0
 public IActionResult Create(Character character)
 {
     db.Characters.Add(character);
     db.SaveChanges();
     return(RedirectToAction("Index"));
 }
 public IActionResult Create(Location location)
 {
     db.Locations.Add(location);
     db.SaveChanges();
     return(RedirectToAction("Index"));
 }