예제 #1
0
 public void CancelReservation(List <PreorderTable> tableList)
 {
     using (ReservationService.ReservationServiceClient proxy = new ReservationService.ReservationServiceClient())
     {
         try
         {
             proxy.Open();
             foreach (PreorderTable table in tableList)
             {
                 proxy.CancelReservation(table);
             }
         }
         catch (FaultException <HCSMSException> ex)
         {
             raiseError(ex);
         }
         catch (Exception ex)
         {
             raiseError(ex);
         }
         finally
         {
             proxy.Close();
         }
     }
 }
예제 #2
0
        public List <PreorderTable> GetReservation()
        {
            using (ReservationService.ReservationServiceClient proxy = new ReservationService.ReservationServiceClient())
            {
                try
                {
                    proxy.Open();

                    return(proxy.GetReservationList().ToList());
                }
                catch (FaultException <HCSMSException> ex)
                {
                    raiseError(ex);
                    return(null);
                }
                catch (Exception ex)
                {
                    raiseError(ex);
                    return(null);
                }
                finally
                {
                    proxy.Close();
                }
            }
        }