func (VS *Server) existDeliveryPackByID(c *gin.Context, id bson.ObjectId) bool {
	var dPack []Delivery
	VS.DataBase.Find(&dPack, bolthold.Where("ID").Eq(id))
	if len(dPack) == 0 {
		return false
	}
	return true
}
// This method finds the DeliveryPack in the database by his ID and returns it, also returns true if found and false if not
This method finds the DeliveryPack in the database by his ID and returns it, also returns true if found and false if not
// This method finds the DeliveryPack in the database by his ID and returns it also returns true if found and false if not
func (VS *Server) existDeliveryPackByID(c *gin.Context, id bson.ObjectId) bool {
	var dPack []Delivery
	VS.DataBase.Find(&dPack, bolthold.Where("ID").Eq(id))
	if len(dPack) == 0 {
		return false
	}
	return true
}
func ( VS * Server ) existDeliveryPackByID ( c * gin . Context , id bson . ObjectId ) bool { var dPack [ ] Delivery VS . DataBase . Find ( & dPack , bolthold . Where ( " " ) . Eq ( id ) ) if len ( dPack ) == 0 { return false } return true }
This method finds the DeliveryPack in the database by his ID and returns it, also returns true if found and false if not
This method finds the DeliveryPack in the database by his ID and returns it also returns true if found and false if not