public async Task <bool> DeleteForm(string token, string path) { HttpResponseMessage response = await _httpUtil.DeleteAsync(token, APIs.ModifiedForm(path)); if (response == null) { return(false); } return(response.IsSuccessStatusCode); }
public async Task <T> DeleteAsync <T>(string url, string accessToken) { var httpResponse = await _httpUtil.DeleteAsync(url, accessToken); httpResponse.EnsureSuccessStatusCode(); string stringResponse = await httpResponse.Content.ReadAsStringAsync(); var responseModel = JsonConvert.DeserializeObject <T>(stringResponse); return(responseModel); }