diff --git a/README.md b/README.md index dee77f2..d08bf69 100644 --- a/README.md +++ b/README.md @@ -16,9 +16,9 @@ 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 ```csharp -public class MyController : Controller +public class MyController : Controller2 { - public override ControllerResponse Invoke() + public ControllerResponse Invoke() { ... return new Json(myObj); @@ -52,9 +52,9 @@ public void ConfigureServices(IServiceCollection services) ##### Asynchronous ```csharp -public class MyController : ControllerAsync +public class MyController : Controller2 { - public override async Task Invoke() + public async Task Invoke() { await ReadModelAsync(); @@ -68,9 +68,9 @@ public class MyController : ControllerAsync JSON string will be deserialized to the controller model on first model access ```csharp -public class MyController : Controller +public class MyController : Controller2 { - public override ControllerResponse Invoke() + public ControllerResponse Invoke() { Model. }