What is the difference between async Task<> and without it? Does it make a difference, and is this like using jquery ajax?
[HttpPost]
[ValidateAntiForgeryToken]
public async Task<ActionResult> SetPassword(SetPasswordViewModel model)
{
// If we got this far, something failed, redisplay form
return View(model);
}
vs.
[HttpPost]
[ValidateAntiForgeryToken]
public ActionResult SetPassword(SetPasswordViewModel model)
{
// If we got this far, something failed, redisplay form
return View(model);
}