예제 #1
0
        public void Delete(int id)
        {
            EncounterMonsters em = _context.EncounterMonsters.Where(em => em.Id == id).FirstOrDefault();

            if (em != null)
            {
                _context.EncounterMonsters.Remove(em);
                _context.SaveChanges();
            }
        }
예제 #2
0
 public IActionResult addMonsters(EncounterMonsters EM)
 {
     _repo.Add(EM);
     return(NoContent());
 }
예제 #3
0
 public void Add(EncounterMonsters encounterMonsters)
 {
     _context.Add(encounterMonsters);
     _context.SaveChanges();
 }