示例#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());
        }