Пример #1
0
        private static MIH.Event ToDvdWatch(DVDP.Event source)
        {
            var target = new MIH.Event()
            {
                Note      = source.Note,
                Timestamp = source.Timestamp,
                Type      = (MIH.EventType)source.Type,
                User      = new MIH.User()
                {
                    EmailAddress = source.User?.EmailAddress,
                    FirstName    = source.User?.FirstName,
                    LastName     = source.User?.LastName,
                    PhoneNumber  = source.User?.PhoneNumber,
                },
            };

            return(target);
        }
Пример #2
0
 internal static string GetUserName(DVDP.Event watch) => string.Join(" ", watch.User?.FirstName, watch.User?.LastName).Trim();