public async Task <HttpResponseMessage> Excluir(Guid id) { try { var response = _servicePessoa.ExcluirPessoa(id); return(await ResponseAsync(response, _servicePessoa)); } catch (Exception ex) { return(await ResponseExceptionAsync(ex)); } }
public async Task <HttpResponseMessage> Excluir(Guid id) { try { var response = _servicePessoa.ExcluirPessoa(id); return(await ResponseAsync(response, _servicePessoa)); } catch (Exception ex) { return(await ResponseExceptionAsync(ex)); } }