public async Task <ActionResult> Delete(int id)
        {
            var result = await _peopleService.DeletePersonAsync(id);

            if (result == -1)
            {
                return(NotFound());
            }
            else if (result == 0)
            {
                return(BadRequest("Failed to save changes."));
            }

            return(NoContent());
        }
        private async void OnDeletePerson(Person person)
        {
            if (Deleting())
            {
                try
                {
                    await _peopleService.DeletePersonAsync(person.PersonId);

                    People.Remove(person);
                    Deleted();
                }
                catch (Exception ex)
                {
                    Failed(ex);
                }
            }
        }