public JsonResult Register(string ObjectName, string Password)
        {
            bool finishTag = true;

            ContactPerson contactPerson = new ContactPerson();

            contactPerson.ObjectID    = Guid.NewGuid().ToString();
            contactPerson.ContactName = ObjectName;
            contactPerson.Password    = Password;

            for (int i = 0; i < cacheManage.GetCache <IList <MMSServer> >("MMSServers").Count; i++)
            {
                string returnstr = CommonVariables.syncSocketClient.SendMsgWithReceive(cacheManage.GetCache <IList <MMSServer> >("MMSServers")[i].MMS_IP,
                                                                                       cacheManage.GetCache <IList <MMSServer> >("MMSServers")[i].MMS_Port,
                                                                                       Common.CommonFlag.F_PSSendMMSUser + CommonVariables.javaScriptSerializer.Serialize(contactPerson));

                if (returnstr != contactPerson.ObjectID)
                {
                    finishTag = false;
                }
            }

            if (finishTag)
            {
                if (contactPersonService.InsertNewPerson(contactPerson) > 0)
                {
                    return(Json("register success", JsonRequestBehavior.AllowGet));
                }
            }
            return(Json("register failed", JsonRequestBehavior.AllowGet));
        }