这两种动作方法有什么区别?
public ActionResult Index()
{
var task = new ServiceClient().GetProductsAsync();
return View(task.Result);
}
public async Task<ActionResult> Index()
{
var task = new ServiceClient().GetProductsAsync();
return View(await task);
}