public void Update(DalPurchase entity)
 {
     _context.Set <Purchase>().AddOrUpdate(entity.ToOrmPurchase());
 }
 public void Create(DalPurchase entity)
 {
     _context.Set <Purchase>().Add(entity.ToOrmPurchase());
 }