public void Put(int id, [FromBody] MonsterMainType monsterMainType) { monsterMainType.MonsterMainTypeId = id; _db.Entry(monsterMainType).State = EntityState.Modified; _db.SaveChanges(); }
public void Post([FromBody] MonsterMainType monsterMainType) { _db.MonsterMainTypes.Add(monsterMainType); _db.SaveChanges(); }