public async Task <Category> UpdateCategory(Category obj) { _dbContext.Update(obj); await _dbContext.SaveChangesAsync(); return(obj); }
public async Task Update(Book book) { _dbContext.Update(book); await _dbContext.SaveChangesAsync(); }