func (VS *Server) serviceToHTML(c *gin.Context, s Service) ServiceHTML {
	var serviceHTML ServiceHTML
	serviceHTML.ID = s.ID
	serviceHTML.Name = s.Name
	serviceHTML.Balance = s.Balance
	serviceHTML.Type = VS.getServiceTypeByID(c, s.Type, "h_view", "serviceToHTML", "serviceHTML.Type = VS.getServiceTypeByID", true).Name
	serviceHTML.TypeID = VS.getServiceTypeByID(c, s.Type, "h_view", "serviceToHTML", "serviceHTML.TypeID = VS.getServiceTypeByID", true).ID
	serviceHTML.Village = VS.getVillageByID(c, s.IDVillage, "h_view", "serviceToHTML", "serviceHTML.Village = VS.getVillageByID").Name
	serviceHTML.VillageID = s.IDVillage.Hex()
	serviceHTML.DeliveryID = bson.NewObjectId()
	tpe := VS.getServiceTypeByID(c, s.Type, "handlers_view", "serviceToHTML", "tpe := VS.getServiceTypeByID", true)
	serviceHTML.Photo = "/local/services/" + tpe.Icon

	return serviceHTML
}
// Transform the Services information from DataBase to Human readable (in individual)
Transform the Services information from DataBase to Human readable (in individual)
// Transform the Services information from DataBase to Human readable ( in individual )
func (VS *Server) serviceToHTML(c *gin.Context, s Service) ServiceHTML {
	var serviceHTML ServiceHTML
	serviceHTML.ID = s.ID
	serviceHTML.Name = s.Name
	serviceHTML.Balance = s.Balance
	serviceHTML.Type = VS.getServiceTypeByID(c, s.Type, "h_view", "serviceToHTML", "serviceHTML.Type = VS.getServiceTypeByID", true).Name
	serviceHTML.TypeID = VS.getServiceTypeByID(c, s.Type, "h_view", "serviceToHTML", "serviceHTML.TypeID = VS.getServiceTypeByID", true).ID
	serviceHTML.Village = VS.getVillageByID(c, s.IDVillage, "h_view", "serviceToHTML", "serviceHTML.Village = VS.getVillageByID").Name
	serviceHTML.VillageID = s.IDVillage.Hex()
	serviceHTML.DeliveryID = bson.NewObjectId()
	tpe := VS.getServiceTypeByID(c, s.Type, "handlers_view", "serviceToHTML", "tpe := VS.getServiceTypeByID", true)
	serviceHTML.Photo = "/local/services/" + tpe.Icon
	return serviceHTML
}
func ( VS * Server ) serviceToHTML ( c * gin . Context , s Service ) ServiceHTML { var serviceHTML ServiceHTML serviceHTML . ID = s . ID serviceHTML . Name = s . Name serviceHTML . Balance = s . Balance serviceHTML . Type = VS . getServiceTypeByID ( c , s . Type , " " , " " , " " , true ) . Name serviceHTML . TypeID = VS . getServiceTypeByID ( c , s . Type , " " , " " , " " , true ) . ID serviceHTML . Village = VS . getVillageByID ( c , s . IDVillage , " " , " " , " " ) . Name serviceHTML . VillageID = s . IDVillage . Hex ( ) serviceHTML . DeliveryID = bson . NewObjectId ( ) tpe := VS . getServiceTypeByID ( c , s . Type , " " , " " , " " , true ) serviceHTML . Photo = " " + tpe . Icon return serviceHTML }
Transform the Services information from DataBase to Human readable (in individual)
Transform the Services information from DataBase to Human readable ( in individual )