I have an Mvc 4 webapp where in one of the controllers I somehow want to use the following function:
[
Authorize(Roles = "Administrators")]
public async Task<ActionResult> SaveProduct(ProductEdit product)
{ product =
await product.Save();
return RedirectToAction("Index");
} Is there a way to make an EditableRoot.Save() to work with async/await? Thanks, Peter
use
product = await product.SaveAsync();
Thanks a lot!!
For some reason I totally missed that you've added SaveAsync().
Copyright (c) Marimer LLC