예제 #1
0
        public async Task PostUserProfile(UserProfile userProfile)
        {
            var httpClient = new HttpClient();
            var json       = JsonConvert.SerializeObject(userProfile);

            StringContent content = new StringContent(json);

            content.Headers.ContentType = new MediaTypeHeaderValue("application/json");
            var result = await httpClient.PostAsync(Url + "/UserProfiles", content);
        }
 public SubmitProfileViewModel()
 {
     SelectedUserProfile = new UserProfile();
 }