public async Task <T> GetByIdAsync(object id) { return(await _dbContext.Set <T>().FindAsync(id)); }
public GenericRepository(PulstarDbContext dbContext) { _dbContext = dbContext ?? throw new ArgumentNullException(nameof(dbContext)); _dbSet = _dbContext.Set <T>(); }