public IActionResult Delete(Person person) { _context.Remove(person); _context.SaveChanges(); return(RedirectToAction("Index")); }
public bool DeletePerson(Person person) { _context.Remove(person); _context.SaveChanges(); return(true); }