private bool CreateHistory(int?idUser, int id, ActionHistoric action) { HistoryProposalDTO historic = new HistoryProposalDTO { IdProposal = id, IdUser = idUser, Action = (int)action }; HistoryProposalBusiness business = new HistoryProposalBusiness(); ResultAction result = business.Post(historic); return((int)result.Result > 0); }
internal int PutStatus(int?idUser, int idProposal, Status status, StatusNow statusNow, ActionHistoric action) { int row = new ProposalService().PutStatus(idProposal, status, statusNow); if (row > 0) { CreateHistory(idUser, idProposal, action); } return(row); }