public IActionResult Delete(int id)
        {
            var customer = _repository.GetById(id);

            _repository.Delete(customer);

            return(RedirectToAction("List"));
        }
Esempio n. 2
0
 public void DeletePower(int id)
 {
     _powerRepository.Delete(id);
 }