public async Task <IActionResult> CreateRecycler(int days) { Recycler recycler = new Recycler(); Thread thread = new Thread(() => recycler.RecyclerDeleteAsync(days)); thread.Start(); return(new StatusCodeResult(202)); }