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