public virtual void Delete(TEntity entityToDelete)
 {
     if (context.Entry(entityToDelete).State == EntityState.Detached)
     {
         dbSet.Attach(entityToDelete);
     }
     dbSet.Remove(entityToDelete);
 }
 public void UpdateAuthor(Author Author)
 {
     context.Entry(Author).State = EntityState.Modified;
 }
 public void UpdateMarket(Market Market)
 {
     context.Entry(Market).State = EntityState.Modified;
 }