0

In MVC 4 i created following async method in controller

public async Task<ActionResult> Test()
{
    string str  = await TestClient() ;
    return View() ;
}

Controller Name : Home Action Name :Test When my controller class inherits from "AsyncController" base class then http://localhost/Home/Test dosent work , even debugger is not hit on the action method . But When my controller class inherits from "Controller" base class then it works fine

I am not really sure about the difference it creates based on base class used

1

1 Answer 1

1

AsyncController is the older way of implementing an asynchronous controller; use Controller in all modern code, including async code.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.