/// <summary> /// /// </summary> /// <param name="issueId">issue id</param> /// <param name="userId">user who is viewing this information</param> /// <returns>list of discarded decisions</returns> public List <DecisionModel> GetOldDecisions(int issueId, int userId) { List <HDecision> oldD = DecisionOp.GetOldDecisions(issueId, userId); List <DecisionModel> list = new List <DecisionModel>(); DecisionModel dm; foreach (HDecision d in oldD) { dm = new DecisionModel(); dm.AlternativeId = Convert.ToInt32(d.AlternativeId); dm.ChangeDate = d.ChangeDate; dm.Explanation = d.Explanation; dm.IssueId = d.IssueId; list.Add(dm); } return(list); }