I have a web api like this:
public async Task<IHttpActionResult> PostTest(Model model)
{
db.UserOrders.Add(model);
await db.SaveChangesAsync();
await PushUtils.SendPush("title" , "message"); // heavy task
return Ok();
}
In this method the user has to wait until the heavy task is executed.
Is there any way to execute this task after returning value to the user?