public bool ChangeMonsterType(MonsterType monsterType, EntityState state) { var entry = db.Entry <MonsterType>(monsterType); entry.State = state; return(db.SaveChanges() > 0); }
public bool InsertMonsterType(MonsterType monsterType) { db.MonsterTypes.Add(monsterType); return(db.SaveChanges() > 0); }