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