Skip to content

Commit 771d9af

Browse files
committed
[edit] to controller v2 examples
1 parent df2cd94 commit 771d9af

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
If the controller returns `Json` response class object, then the Framework execution will be stopped, object will be parsed to JSON string and sent to client
1717

1818
```csharp
19-
public class MyController : Controller
19+
public class MyController : Controller2
2020
{
21-
public override ControllerResponse Invoke()
21+
public ControllerResponse Invoke()
2222
{
2323
...
2424
return new Json(myObj);
@@ -52,9 +52,9 @@ public void ConfigureServices(IServiceCollection services)
5252
##### Asynchronous
5353

5454
```csharp
55-
public class MyController : ControllerAsync<MyModel>
55+
public class MyController : Controller2<MyModel>
5656
{
57-
public override async Task<ControllerResponse> Invoke()
57+
public async Task<ControllerResponse> Invoke()
5858
{
5959
await ReadModelAsync();
6060

@@ -68,9 +68,9 @@ public class MyController : ControllerAsync<MyModel>
6868
JSON string will be deserialized to the controller model on first model access
6969

7070
```csharp
71-
public class MyController : Controller<MyModel>
71+
public class MyController : Controller2<MyModel>
7272
{
73-
public override ControllerResponse Invoke()
73+
public ControllerResponse Invoke()
7474
{
7575
Model.
7676
}

0 commit comments

Comments
 (0)