Пример #1
0
        public static RoomExposure Create(string code, string description)
        {
            var bedType = new RoomExposure {
                Description = description, Code = code
            };

            return(bedType);
        }
Пример #2
0
 public void Update(string number, RoomType type, BedType bedType,
                    RoomLocation location, RoomExposure exposure)
 {
     RoomNumber     = number;
     RoomType       = type;
     RoomTypeId     = type.Id;
     BedType        = bedType;
     BedTypeId      = bedType.Id;
     RoomLocation   = location;
     RoomLocationId = location.Id;
 }
Пример #3
0
        public static RoomInfo Create(
            string number, RoomType type, BedType bedType,
            RoomLocation location, RoomExposure exposure)
        {
            var room = new RoomInfo {
                RoomNumber     = number,
                RoomType       = type,
                RoomTypeId     = type.Id,
                BedType        = bedType,
                BedTypeId      = bedType.Id,
                RoomLocation   = location,
                RoomLocationId = location.Id,
            };

            return(room);
        }