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();
         }
     }
 }
        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();
                }
            }
        }