Exemple #1
0
		private DateTime? GetDateFromHistoryNote(OrderHistoryNote source)
		{
			if (source == null)
			{
				return null;
			}
			return source.Date;
		}
		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;
		}