public async Task <bool> DeleteAsync(Npc entity) { _db.Npcs.Remove(entity); return(await SaveAsync()); }
public async Task <bool> UpdateAsync(Npc entity) { _db.Npcs.Update(entity); return(await SaveAsync()); }
public async Task <bool> CreateAsync(Npc entity) { await _db.Npcs.AddAsync(entity); return(await SaveAsync()); }