public async Task <Book> Insert(Book book) { _dbContext.Add(book); await _dbContext.SaveChangesAsync(); return(book); }
public async Task <Category> InsertCategory(Category obj) { _dbContext.Add(obj); await _dbContext.SaveChangesAsync(); return(obj); }