Follow the code:
Example 1:
public async System.Threading.Tasks.Task<ActionResult> Index()
{
return View();
}
Example 2:
public ActionResult Index()
{
return View();
}
Please explain the difference between the 2 in as much detail as possible with get
and post
.