Exemple #1
0
 /// <summary>
 /// 更新自己
 /// </summary>
 public int UpdateSelf()
 {
     return(_owner.HttpClient.CallAsync <int>(HttpMethod.Patch, ApiConfig.ApiSecurityMyselfPath,
                                              NameValue.ToArray(
                                                  NameValue.Set <User>(p => p.Phone, Phone),
                                                  NameValue.Set <User>(p => p.EMail, EMail)), true).Result);
 }