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

            return(await SaveAsync());
        }