public override string ToString() { VancouverHotelEntities context = new VancouverHotelEntities(); RoomType roomType = context.RoomTypes.Find(RoomTypeId); return(RoomId + ":" + roomType.RoomTypeName + " (Max" + roomType.Capacity + ") " + "$" + roomType.PricePerNight + " (" + Status + ")"); }
public override string ToString() { VancouverHotelEntities context = new VancouverHotelEntities(); Room room = context.Rooms.Find(RoomId); RoomType roomType = context.RoomTypes.Find(room.RoomTypeId); return(ReservationId + ":" + roomType.RoomTypeName + "$" + roomType.PricePerNight * NumberOfNight); }