Deleting a Person
Application Service
First, adding a new method definition to IPersonAppService interface as always:
EntityDto is a shortcut of ABP if we only get an id value. Implementation (in PersonAppService) is very simple:
We also authorized deleting a person as did before for creating a person.
We also need to define Pages_Tenant_PhoneBook_DeletePerson constant in AppPermissions and define related permission in AppAuthorizationProvider.
Controller
View
We're changing index.cshtml view to add a button;
It first shows a confirmation message when we click the delete button:


If we click Yes, it simply calls DeletePerson method of PhoneBookController.