Exemplo n.º 1
0
 public RedirectToActionResult DeletePerson(int id)
 {
     _helper.DeletePerson(id);
     return(RedirectToAction("AllPersons"));
 }
        public IActionResult DeletePerson([FromRoute] int id)
        {
            _dbHelper.DeletePerson(id);

            return(RedirectToAction("GetAllPersons"));
        }