示例#1
0
		private DateTime? GetDateFromHistoryNote(OrderHistoryNote source)
		{
			if (source == null)
			{
				return null;
			}
			return source.Date;
		}
示例#2
0
		private static OrderHistoryItemViewModel GetOrderHistoryNoteModel(OrderHistoryNote historyNote)
		{
			var model = new OrderHistoryItemViewModel
			{
				Date = historyNote.Date,
				Details = historyNote.Description,
				UserEmail = historyNote.User.Email,
				UserName = historyNote.User.FullName
			};
			return model;
		}