internal ResultAction Get(int idProposal) { List <HistoryProposalDTO> historic = new HistoryProposalService().Get(idProposal); ResultAction result = new ResultAction(); if (historic.Any()) { result.IsOk = true; result.Result = historic; } else { result.Message = "Nenhum histórico encontrado."; } return(result); }