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