Beispiel #1
0
        public async Task <IActionResult> DeleteConfirmed(long id)
        {
            //var employeeInfo = await _context.EmployeeInfos.FindAsync(id);
            //_context.EmployeeInfos.Remove(employeeInfo);
            //await _context.SaveChangesAsync();
            var employeeInfo = employeeInfoRepository.GetDeleteList(id);
            await employeeInfoRepository.Delete(employeeInfo);

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