예제 #1
0
        /// <summary>
        /// Creates a new person
        /// </summary>
        /// <returns></returns>
		public virtual async Task<HttpResponseMessage> PostAsync(Person person)
		{
			return await HttpClient.PostAsJsonAsync<Person>("api/People", person);
		}
예제 #2
0
        /// <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);
		}