public void Delete(int id) { EncounterMonsters em = _context.EncounterMonsters.Where(em => em.Id == id).FirstOrDefault(); if (em != null) { _context.EncounterMonsters.Remove(em); _context.SaveChanges(); } }
public IActionResult addMonsters(EncounterMonsters EM) { _repo.Add(EM); return(NoContent()); }
public void Add(EncounterMonsters encounterMonsters) { _context.Add(encounterMonsters); _context.SaveChanges(); }