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")); }
public async Task AddSubject(string login, string password, HandbookSubjects handbookSubjects) { HandbookSubjectsService handbookSubjectsService = new HandbookSubjectsService(); await handbookSubjectsService.Add(login, password, handbookSubjects); }