Quantcast
Channel: CSLA .NET
Viewing all articles
Browse latest Browse all 764

How to use await with EditableRoot.Save()

$
0
0

I have an Mvc 4 webapp where in one of the controllers I somehow want to use the following function:

 

 

 

 

 

[

 

Authorize(Roles = "Administrators")]

 

 

publicasyncTask<ActionResult> SaveProduct(ProductEditproduct)

{

product =

 

awaitproduct.Save();

 

 

returnRedirectToAction("Index");

}

Is there a way to make an EditableRoot.Save() to work with async/await?

Thanks,

Peter


Viewing all articles
Browse latest Browse all 764

Trending Articles