public ResponseBase ExcluirAeronave(Guid id) { Aeronave aeronave = _repositoryAeronave.ObterPorId(id); if (aeronave == null) { AddNotification("Id", "Dados não encontrados"); return(null); } _repositoryAeronave.Remover(aeronave); return(new ResponseBase()); }
public BaseResponse Excluir(Guid id) { if (!VerificaRequest(id, "Id")) { return(null); } Aeronave aeronave = _repositoryAeronave.ObterPorId(id); if (aeronave == null) { AddNotification("Excluir", Message.DADOS_NAO_ENCONTRADOS); return(null); } _repositoryAeronave.Remover(aeronave); return(new BaseResponse()); }