aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ApartmentManager/ApartmentManager/Model/Apartment.cs12
1 files changed, 10 insertions, 2 deletions
diff --git a/ApartmentManager/ApartmentManager/Model/Apartment.cs b/ApartmentManager/ApartmentManager/Model/Apartment.cs
index c5754a9..92f1501 100644
--- a/ApartmentManager/ApartmentManager/Model/Apartment.cs
+++ b/ApartmentManager/ApartmentManager/Model/Apartment.cs
@@ -30,11 +30,19 @@ namespace ApartmentManager.Model
}
+ //public override string ToString()
+ //{
+ // return string.Format(
+ // "Apartment No: {0} Size: {1} NoOfRooms: {2} MonthlyCharge: {3} Floor: {4} Address: {5}",
+ // ApartmentNumber, Size, NumberOfRooms, MonthlyCharge, Floor, Address);
+ //}
+
public override string ToString()
{
return string.Format(
- "Apartment No: {0} Size: {1} NoOfRooms: {2} MonthlyCharge: {3} Floor: {4} Address: {5}",
- ApartmentNumber, Size, NumberOfRooms, MonthlyCharge, Floor, Address);
+ $"Apartment No: {ApartmentNumber} Size: {Size} NoOfRooms: {NumberOfRooms}" +
+ $" MonthlyCharge: {MonthlyCharge} Floor: {Floor} Address {Address}"
+ );
}
}
}