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

            return(await SaveAsync());
        }