示例#1
0
 public Dictionary <string, Object> Post(MemberAddress memberAddress)
 {
     try
     {
         Dictionary <string, Object> dic = new Dictionary <string, object>();
         if (memberAddress.Guid.ToString() != "00000000-0000-0000-0000-000000000000")
         {
             //更新
             dic = CommonRequest.ApiAddressUpdate(memberAddress);
         }
         else
         {
             dic = CommonRequest.ApiAddressAdd(memberAddress);
         }
         return(dic);
     }
     catch (Exception e)
     {
         logger.Error("添加或更新地址接口异常:" + e.Message);
         return(null);
     }
 }