Example #1
0
 public IActionResult DeletePerson(int Id)
 {
     try
     {
         var model = new EditPerson(_configuration)
         {
             PersonId = Id
         };
         model.DeletePerson();
         return(Content("success"));
     }
     catch
     {
         return(Content("failed"));
     }
 }