Esempio n. 1
0
 public async Task Add(string login, string password, HandbookSubjects handbookSubjects)
 {
     HttpClient client   = GetClient();
     var        response = await client.PostAsync(Url,
                                                  new StringContent(
                                                      JsonConvert.SerializeObject(handbookSubjects),
                                                      Encoding.UTF8, "application/json"));
 }
Esempio n. 2
0
 public async Task AddSubject(string login, string password, HandbookSubjects handbookSubjects)
 {
     HandbookSubjectsService handbookSubjectsService = new HandbookSubjectsService();
     await handbookSubjectsService.Add(login, password, handbookSubjects);
 }