func (VS *Server) checkChange(c *gin.Context, IDAudit bson.ObjectId, nameAttribute, before, after string) bool {
	if !strings.EqualFold(before, after) {
		var ch Change
		ch.ID = bson.NewObjectId()
		ch.IDAudit = IDAudit
		ch.NameAttribute = nameAttribute
		ch.Before = before
		ch.After = after
		VS.addElementToDatabaseWithoutRegister(c, ch, ch.ID, "h_functionality", "checkChange", "VS.addElementToDatabaseWithoutRegister ")
		return true
	}
	return false
}
// Check is two values given are different, if yes it creates a change and returns true
Check is two values given are different, if yes it creates a change and returns true
// Check is two values given are different if yes it creates a change and returns true
func (VS *Server) checkChange(c *gin.Context, IDAudit bson.ObjectId, nameAttribute, before, after string) bool {
	if !strings.EqualFold(before, after) {
		var ch Change
		ch.ID = bson.NewObjectId()
		ch.IDAudit = IDAudit
		ch.NameAttribute = nameAttribute
		ch.Before = before
		ch.After = after
		VS.addElementToDatabaseWithoutRegister(c, ch, ch.ID, "h_functionality", "checkChange", "VS.addElementToDatabaseWithoutRegister ")
		return true
	}
	return false
}
func ( VS * Server ) checkChange ( c * gin . Context , IDAudit bson . ObjectId , nameAttribute , before , after string ) bool { if ! strings . EqualFold ( before , after ) { var ch Change ch . ID = bson . NewObjectId ( ) ch . IDAudit = IDAudit ch . NameAttribute = nameAttribute ch . Before = before ch . After = after VS . addElementToDatabaseWithoutRegister ( c , ch , ch . ID , " " , " " , " " ) return true } return false }
Check is two values given are different, if yes it creates a change and returns true
Check is two values given are different if yes it creates a change and returns true