Example #1
0
        public void MarkDates(BO.Order order)//
        {
            DO.GuestRequest guestRequest = dal.RecieveGuestRequest(order.GuestRequest.GuestRequestKey);
            DO.HostingUnit  dHostingUnit = dal.RecieveHostingUnit(order.HostingUnit.Key);
            DateTime        temp         = guestRequest.EntryDate;

            //now we mark this days in true
            while (DateTime.Compare(temp, guestRequest.ReleaseDate) != 0)
            {
                dHostingUnit.SetDate(temp, true);
                temp = temp.AddDays(1);
            }
            dal.UpdateHostingUnit(dHostingUnit);
            guestRequest.Status = DO.Request_Statut.ORDERED;
            //dal.UpdateGusetRequestStatus(guestRequest);
        }
Example #2
0
 public GuestRequest RecieveGuestRequest(int key)
 {
     DO.GuestRequest guestRequest = XML.RecieveGuestRequest(key);
     return(guestRequest == null ? throw new MissingMemberException($"Guest request  {key}   dosen't Exist")
         : guestRequest);
 }