public async Task <bool> DeletarResponsavel(ResponsavelViewModel responsavelVM) { try { var responsavel = Mapper.Map <Responsavel>(responsavelVM); if (await ValidarDeletarResponsavel(responsavel.Id)) { await _usuarioApplicationService.ValidarExclusaoUsuario(responsavel.Telefone, "R"); await BeginTransaction(); await Task.Run(() => _responsavelRepository.Delete(responsavel)); await Commit(); return(true); } return(false); } catch (Exception e) { throw e; } }