Пример #1
0
        public IActionResult Delete(int id)
        {
            var customer = _repository.GetById(id);

            _repository.Delete(customer);

            return(RedirectToAction("List"));
        }
Пример #2
0
 public void DeletePower(int id)
 {
     _powerRepository.Delete(id);
 }