public static void AddApartment(Apartment apartment) { XmlApartmentWriter writer = new XmlApartmentWriter(ApartmentFile); writer.AppendElement(apartment); }
public static void RemoveApartment(Apartment apartment) { XmlApartmentWriter writer = new XmlApartmentWriter(ApartmentFile); writer.RemoveElement(apartment); }
public static bool ApartmentExist(Apartment apartment) { XmlApartmentReader reader = new XmlApartmentReader(ApartmentFile); return(reader.Exist(apartment)); }