Ejemplo n.º 1
0
 public void CitizensGridDelete(Guid citizenId)
 {
     try
     {
         _citizenService.DeleteCitizen(citizenId);
         _viewModel.CitizensGridDataBind();
     }
     catch (Exception ex)
     {
         BaseException.HandleException(ex, false);
         _viewModel.ShowErrorMessage(ex.Message);
     }
 }
Ejemplo n.º 2
0
 public async Task <ActionResult <Citizen> > DeleteById(int id)
 {
     return(Ok(await _citizenService.DeleteCitizen(id)));
 }