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

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