Beispiel #1
0
			private static Income MapVmToIncomeEdits(IncomeVm sourceVm)
			{
				return new Income {
					Actual = sourceVm.AmountRecvd,
					AssetId = sourceVm.AssetId,
					IncomePositionId = sourceVm.ReferencedPositionId,
					DateRecvd = sourceVm.DateReceived.HasValue ? (DateTime)sourceVm.DateReceived : default(DateTime),
					LastUpdate = DateTime.Now,
					Url = sourceVm.Url
				};
			}
Beispiel #2
0
			private static Income MapVmToIncome(IncomeVm sourceVm) {
				return new Income {
					Account = sourceVm.AcctType,
					Actual = sourceVm.AmountRecvd,
					DateRecvd = sourceVm.DateReceived.HasValue ? (DateTime) sourceVm.DateReceived : DateTime.Now,
					AssetId = sourceVm.AssetId,
					Projected = sourceVm.AmountProjected,
					LastUpdate = DateTime.Now,
					IncomePositionId = sourceVm.ReferencedPositionId,
					Url = sourceVm.Url
				};
			}