@@ -54,7 +54,7 @@ public async Task<ToDoItem> AddAsync(ToDoItem todo)
5454
5555 var jsonRequest = JsonConvert . SerializeObject ( todo ) ;
5656 var jsoncontent = new StringContent ( jsonRequest , Encoding . UTF8 , "application/json" ) ;
57- var response = await this . _httpClient . PostAsync ( $ "{ _TodoListBaseAddress } / api/todolist", jsoncontent ) ;
57+ var response = await this . _httpClient . PostAsync ( $ "{ _TodoListBaseAddress } api/todolist", jsoncontent ) ;
5858
5959 if ( response . StatusCode == HttpStatusCode . OK )
6060 {
@@ -71,7 +71,7 @@ public async Task DeleteAsync(int id)
7171 {
7272 await PrepareAuthenticatedClient ( ) ;
7373
74- var response = await _httpClient . DeleteAsync ( $ "{ _TodoListBaseAddress } / api/todolist/{ id } ") ;
74+ var response = await _httpClient . DeleteAsync ( $ "{ _TodoListBaseAddress } api/todolist/{ id } ") ;
7575
7676 if ( response . StatusCode == HttpStatusCode . OK )
7777 {
@@ -87,7 +87,7 @@ public async Task<ToDoItem> EditAsync(ToDoItem todo)
8787
8888 var jsonRequest = JsonConvert . SerializeObject ( todo ) ;
8989 var jsoncontent = new StringContent ( jsonRequest , Encoding . UTF8 , "application/json-patch+json" ) ;
90- var response = await _httpClient . PutAsync ( $ "{ _TodoListBaseAddress } / api/todolist/{ todo . Id } ", jsoncontent ) ;
90+ var response = await _httpClient . PutAsync ( $ "{ _TodoListBaseAddress } api/todolist/{ todo . Id } ", jsoncontent ) ;
9191
9292 if ( response . StatusCode == HttpStatusCode . OK )
9393 {
@@ -103,7 +103,7 @@ public async Task<ToDoItem> EditAsync(ToDoItem todo)
103103 public async Task < IEnumerable < ToDoItem > > GetAsync ( )
104104 {
105105 await PrepareAuthenticatedClient ( ) ;
106- var response = await _httpClient . GetAsync ( $ "{ _TodoListBaseAddress } / api/todolist") ;
106+ var response = await _httpClient . GetAsync ( $ "{ _TodoListBaseAddress } api/todolist") ;
107107 if ( response . StatusCode == HttpStatusCode . OK )
108108 {
109109 var content = await response . Content . ReadAsStringAsync ( ) ;
@@ -117,7 +117,7 @@ public async Task<IEnumerable<ToDoItem>> GetAsync()
117117 public async Task < IEnumerable < string > > GetAllUsersAsync ( )
118118 {
119119 await PrepareAuthenticatedClient ( ) ;
120- var response = await _httpClient . GetAsync ( $ "{ _TodoListBaseAddress } / api/todolist/getallusers") ;
120+ var response = await _httpClient . GetAsync ( $ "{ _TodoListBaseAddress } api/todolist/getallusers") ;
121121 if ( response . StatusCode == HttpStatusCode . OK )
122122 {
123123 var content = await response . Content . ReadAsStringAsync ( ) ;
@@ -136,7 +136,7 @@ public async Task<IEnumerable<string>> GetAllUsersAsync()
136136 public async Task < ToDoItem > GetAsync ( int id )
137137 {
138138 await PrepareAuthenticatedClient ( ) ;
139- var response = await _httpClient . GetAsync ( $ "{ _TodoListBaseAddress } / api/todolist/{ id } ") ;
139+ var response = await _httpClient . GetAsync ( $ "{ _TodoListBaseAddress } api/todolist/{ id } ") ;
140140 if ( response . StatusCode == HttpStatusCode . OK )
141141 {
142142 var content = await response . Content . ReadAsStringAsync ( ) ;
0 commit comments