public static RoomExposure Create(string code, string description) { var bedType = new RoomExposure { Description = description, Code = code }; return(bedType); }
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; }
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); }