public bool addRoomToHouseKeeping(int keepingId, int Roomid, string Cleaner, string Description, DateTime DateOfCleaning, string CleaningType) { try { IHousekeeping houseKeeping = HousekeepingFactory.getHousekeeping(keepingId, Roomid, Cleaner, Description, DateOfCleaning, CleaningType); _housekeepingList.Add(houseKeeping); // DataLayer.addRoomToClean(keepingId, Roomid, Cleaner, Description, DateOfCleaning, CleaningType); return(true); } catch (System.Exception excep) { return(false); } }
public bool DeleteRoomToClean(IHousekeeping room) { //DataLayer.deleteRoomToCleanFromDB(room); HousekeepingList.Remove(room); return(true); }
public static void setHousekeeping(IHousekeeping aHouse) // This provides a seam in the factory where I can prime the factory with the user it will then cough up. (for test code) { housekeeping = aHouse; }