예제 #1
0
        public IActionResult RemoveTestRecords()
        {
            int[] companyIdToRemove = _bonRepo.FilterCompanyByName("Test").Select(i => i.CompanyId).ToArray();
            _bonRepo.RemoveRange(companyIdToRemove);

            return(RedirectToAction(nameof(Index)));
        }