Esempio n. 1
0
        public ActionResult DeleteConfirmed(int id)
        {
            var engineEntity = _engineRepository.GetWhere(x => x.Id == id).FirstOrDefault();

            _engineRepository.Delete(engineEntity);
            return(RedirectToAction("Index"));
        }
Esempio n. 2
0
 public IActionResult DeleteEngine(int id)
 {
     engineRepository.Delete(id);
     return(RedirectToAction("ListEngines"));
 }