/// <summary>
 /// Edit User.
 /// </summary>
 /// <param name="user">
 /// user details.
 /// </param>
 /// <returns>
 /// The <see cref="Task"/>.
 /// </returns>
 public async Task <ResponseType> EditUser(EditUserType user)
 {
     return
         (await
          _apiClient.PostAsync <EditUserType, ResponseType>(
              ApiUris.EditUser(_apiClient.OrganizationId),
              user));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 组织结构树节点的编辑界面
 /// </summary>
 /// <param name="url"></param>
 /// <param name="editId"></param>
 /// <param name="parentId"></param>
 /// <returns></returns>
 /// , EditUserType userType = EditUserType.View 编辑模式参数先去掉,保证显示 //TODO
 public string GetOrgTreeNodeEditUrl(string url, string editId, string parentId = "", EditUserType userType = EditUserType.View)
 {
     return(url + "&" + Param_Mode + "=" + userType + "&" +
            Param_ID + "=" + editId + "&" +
            Param_Parent + "=" + parentId);
 }