예제 #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
        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
        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);
        }