public TEntity GetById(int id)
 {
     using var context = new BusinessTrackingContext();
     return(context.Set <TEntity>().Find(id));
 }
 public List <TEntity> GetAll()
 {
     using var context = new BusinessTrackingContext();
     return(context.Set <TEntity>().ToList());
 }
 public void Update(TEntity entity)
 {
     using var context = new BusinessTrackingContext();
     context.Set <TEntity>().Update(entity);
     context.SaveChanges();
 }