示例#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);