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