예제 #1
0
        public async Task <Category> UpdateCategory(Category obj)
        {
            _dbContext.Update(obj);
            await _dbContext.SaveChangesAsync();

            return(obj);
        }
예제 #2
0
 public async Task Update(Book book)
 {
     _dbContext.Update(book);
     await _dbContext.SaveChangesAsync();
 }