コード例 #1
0
        public static externalDTO.Location MapFromInternal(internalDTO.Location location)
        {
            var res = location == null ? null : new externalDTO.Location()
            {
                Id        = location.Id,
                Locations = location.Locations
            };

            return(res);
        }
コード例 #2
0
ファイル: LocationMapper.cs プロジェクト: jakobjaks/CalendarX
        public static internalDTO.Location MapFromBLL(externalDTO.Location location)
        {
            var res = location == null ? null : new internalDTO.Location()
            {
                Id          = location.Id,
                Name        = location.Name,
                Description = location.Description,
                AppUserId   = location.AppUserId,
            };

            return(res);
        }
コード例 #3
0
ファイル: LocationMapper.cs プロジェクト: jakobjaks/CalendarX
        public static externalDTO.Location MapFromBLL(internalDTO.Location Location)
        {
            var res = Location == null ? null : new externalDTO.Location
            {
                Id          = Location.Id,
                Name        = Location.Name,
                Description = Location.Description,
                AppUserId   = Location.AppUserId,
            };

            return(res);
        }