79257923

Date: 2024-12-06 12:09:38
Score: 1
Natty:
Report link

I changed code to

Controller:

public IActionResult Save()
{
    Task.Run(() => save_work());
    return RedirectToAction("Index");
}

Method:

void save_work()
{
    //save data with ADO.NET to file
    //DbContext is not accessible here
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: user8763613