static void Clean() { ManagerBLL bll = new ManagerBLL(); Console.WriteLine("Debut Clean"); try { List <Task> tasks = new List <Task>(); tasks.Add(bll.ClearBaseAsync()); Task.WaitAll(tasks.ToArray()); } catch (Exception e) { Console.WriteLine(e.Message); } Console.WriteLine("Fini"); }