public Proposal(Counselor c) { Counselor = c; CounselorId = c.Id; }
public List<Round> GetRoundByCounselor(Counselor counselor) { List<Round> rounds = new List<Round>(); foreach (Round round in Rounds) { if (round.Contain(counselor)) { rounds.Add(round); } } return rounds; }
internal bool Contain(Counselor counselor) { return true; //return (from Meeting m in meetings // where m.Counselor != null && m.Counselor.Id == counselor.Id // select m).Count() > 0; }
private CounselorPaymentInfo CalculateCounselorPayment(Counselor counselor, int numberOfRounds, ActivityType activityType) { CounselorPaymentInfo paymentInfo = new CounselorPaymentInfo(); paymentInfo.NumberOfRounds = numberOfRounds; paymentInfo.Counselor = counselor; // paymentInfo.PayForActivity = Calculator.CalculateCounselorCost(counselor.PermanentInfo.IsPermanent, activityType, numberOfRounds); return paymentInfo; }