File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
save-points/09-progressive-web-app/BlazingPizza.Client Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ Also add the `SubscribeToNotifications` method to `OrdersClient`.
145
145
``` csharp
146
146
public async Task SubscribeToNotifications (NotificationSubscription subscription )
147
147
{
148
- var response = await httpClient .PostAsJsonAsync (" notifications/subscribe" , subscription );
148
+ var response = await httpClient .PutAsJsonAsync (" notifications/subscribe" , subscription );
149
149
response .EnsureSuccessStatusCode ();
150
150
}
151
151
```
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ public async Task<int> PlaceOrder(Order order)
34
34
35
35
public async Task SubscribeToNotifications ( NotificationSubscription subscription )
36
36
{
37
- var response = await httpClient . PostAsJsonAsync ( "notifications/subscribe" , subscription ) ;
37
+ var response = await httpClient . PutAsJsonAsync ( "notifications/subscribe" , subscription ) ;
38
38
response . EnsureSuccessStatusCode ( ) ;
39
39
}
40
40
}
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ public async Task<int> PlaceOrder(Order order)
34
34
35
35
public async Task SubscribeToNotifications ( NotificationSubscription subscription )
36
36
{
37
- var response = await httpClient . PostAsJsonAsync ( "notifications/subscribe" , subscription ) ;
37
+ var response = await httpClient . PutAsJsonAsync ( "notifications/subscribe" , subscription ) ;
38
38
response . EnsureSuccessStatusCode ( ) ;
39
39
}
40
40
}
You can’t perform that action at this time.
0 commit comments