public TEntity GetById <TEntity>(int?id) where TEntity : class { return(_dbContext.Set <TEntity>().Find(id)); }