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 }