public IActionResult InsertSqlData() { SQLInserter sql = new SQLInserter(); _ACRepository.GetAllAircrafts().ToList().ForEach(ac => _ACRepository.DeleteAC(ac)); // Delete All ACs first. sql._ACList.ForEach(ac => _ACRepository.AddAC(ac)); // Populate DB with SQLInserter data. return(RedirectToAction(nameof(Index))); }