public IActionResult DeleteRecord(int id) { Record record = sqlRepository.FindRecord(id); sqlRepository.DeleteRecord(record); return(RedirectToAction("Record")); }
public IActionResult DeleteRecord(int id) { Record record = sqlRepository.FindRecord(id); sqlRepository.DeleteRecord(record); return(RedirectToAction("Record")); }