public IActionResult Delete(int id) { var customer = _repository.GetById(id); _repository.Delete(customer); return(RedirectToAction("List")); }
public void DeletePower(int id) { _powerRepository.Delete(id); }