Пример #1
0
 public RequesCreateTheme(FormAddTheme formAddTheme)
 {
     Endpoint    = "/themes";
     ContentBody = new StringContent(
         JsonConvert.SerializeObject(formAddTheme));
     ContentBody.Headers.ContentType
         = MediaTypeHeaderValue.Parse("application/json");
 }
Пример #2
0
 public async Task CreateThemeAsync(FormAddTheme formAddTheme)
 => await _context.HttpPostAsync <ResponseBase>(new RequesCreateTheme(formAddTheme));
Пример #3
0
 public Task AddNewThemeAsync(FormAddTheme formAddTheme)
 => _context.CreateThemeAsync(formAddTheme);