I have a controller like this :
public ActionResult MainController()
/*do stuff*/
JsonResult jsonresult;
return jsonresult;
I'm trying to make this Async like this :
public async Task MainController()
/*do stuff*/
JsonResult jsonresult;
return /*I don't know what to write*/
I have searched SO and some other sites but I couldn't find a solution. As I saw, FromResult is used but when I used it, I got errors. Any help is appreciated. Thanks.