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

            return(await SaveAsync());
        }