예제 #1
0
        void IDAL.update_GuestRequest(GuestRequest My_GuestRequest)// עידכון דרישת לקוח- עידכון סטטוס
        {
            bool ezer = false;

            foreach (var item in Dal_XML_imp.GetGuestRequestFromXml())
            {
                if (item.guest_request_key == My_GuestRequest.guest_request_key)
                {
                    ezer        = true;
                    item.Status = My_GuestRequest.Status;
                }
            }
            if (ezer == false) //אין את הלקוח ברשימה
            {
                Dal_XML_imp.AddGuestRequestToXml(My_GuestRequest.Clone());
                ++Configuration.GuestRequestKey;
                throw new NotImplementedException("The customer is not on the list so add again");
            }
        }
예제 #2
0
        public void AddGuestRequest(GuestRequest My_GuestRequest) //הוספת דרישת לקוח
        {
            My_GuestRequest.guest_request_key = ++Configuration.GuestRequestKey;

            Dal_XML_imp.AddGuestRequestToXml(My_GuestRequest.Clone());
        }