Beispiel #1
0
 public async Task<IndividualUserResponse> UpdateUserAsync(User user)
 {
     var body = new { user = user };
     return await GenericPutAsync<IndividualUserResponse>(string.Format("users/{0}.json", user.Id), body);
 }
Beispiel #2
0
 public IndividualUserResponse UpdateUser(User user)
 {
     var body = new { user = user };
     return GenericPut<IndividualUserResponse>(string.Format("users/{0}.json", user.Id), body);
 }
Beispiel #3
0
 public async Task<IndividualUserResponse> CreateUserAsync(User user)
 {
     var body = new { user = user };
     return await GenericPostAsync<IndividualUserResponse>("users.json", body);
 }
Beispiel #4
0
        public IndividualUserResponse UpdateUser(User user)
        {
            var body = new { user = user };

            return(GenericPut <IndividualUserResponse>(string.Format("users/{0}.json", user.Id), body));
        }
Beispiel #5
0
 public IndividualUserResponse CreateUser(User user)
 {
     var body = new { user = user };
     return GenericPost<IndividualUserResponse>("users.json", body);
 }
Beispiel #6
0
        public async Task <IndividualUserResponse> UpdateUserAsync(User user)
        {
            var body = new { user = user };

            return(await GenericPutAsync <IndividualUserResponse>(string.Format("users/{0}.json", user.Id), body));
        }
Beispiel #7
0
        public IndividualUserResponse CreateUser(User user)
        {
            var body = new { user = user };

            return(GenericPost <IndividualUserResponse>("users.json", body));
        }
Beispiel #8
0
        public async Task <IndividualUserResponse> UpdateUserAsync(User user)
        {
            var body = new { user = user };

            return(await GenericPutAsync <IndividualUserResponse>($"users/{user.Id}.json", body));
        }
Beispiel #9
0
        public async Task <IndividualUserResponse> CreateUserAsync(User user)
        {
            var body = new { user = user };

            return(await GenericPostAsync <IndividualUserResponse>("users.json", body));
        }
Beispiel #10
0
 public Task <JobStatusResponse> BulkUpdateAsync(IEnumerable <long> ids, User userTemplate)
 {
     return(GenericPutAsync <JobStatusResponse>($"users/update_many.json?ids={ids.ToCsv()}", new { user = userTemplate }));
 }
Beispiel #11
0
        public IndividualUserResponse UpdateUser(User user)
        {
            var body = new { user = user };

            return(GenericPut <IndividualUserResponse>($"users/{user.Id}.json", body));
        }
Beispiel #12
0
 public async Task <IndividualUserResponse> CreateUserAsync(User user)
 {
     return(await GenericPostAsync <IndividualUserResponse>("users.json", new { user }));
 }
Beispiel #13
0
 public IndividualUserResponse UpdateUser(User user)
 {
     return(GenericPut <IndividualUserResponse>($"users/{user.Id}.json", new { user }));
 }
Beispiel #14
0
 public IndividualUserResponse CreateUser(User user)
 {
     return(GenericPost <IndividualUserResponse>("users.json", new { user }));
 }
Beispiel #15
0
 public async Task <IndividualUserResponse> CreateOrUpdateUserAsync(User user)
 {
     return(await GenericPostAsync <IndividualUserResponse>($"users/create_or_update.json", new { user }));
 }
Beispiel #16
0
 public IndividualUserResponse CreateOrUpdateUser(User user)
 {
     return(GenericPost <IndividualUserResponse>($"users/create_or_update.json", new { user }));
 }