/// <summary> /// Creates a new person /// </summary> /// <returns></returns> public virtual async Task<HttpResponseMessage> PostAsync(Person person) { return await HttpClient.PostAsJsonAsync<Person>("api/People", person); }
/// <summary> /// Update a person /// </summary> /// <param name="id">id of the guy</param> /// <returns></returns> public virtual async Task<HttpResponseMessage> PutAsync(Int32 id,Person person) { return await HttpClient.PutAsJsonAsync<Person>("api/People/" + id, person); }