Example #1
0
 public void StoreNewDeafClient(DeafClient dc)
 {
     try
     {
         IDeafClient deaf = (IDeafClient)GetService(typeof(IDeafClient).Name);
         deaf.StoreDeafClient(dc);
     }
     catch (InterfaceNotFoundException)
     {
         throw new Exception("Submission failed. Try again.");
     }
 }
Example #2
0
        public DeafClient RetrieveDeafClient(DeafClient dc)
        {
            try
            {
                IDeafClient deaf    = (IDeafClient)GetService(typeof(IDeafClient).Name);
                DeafClient  getDeaf = deaf.GetDeafClient(dc);
                dc = getDeaf;
            }
            catch (ImplementationNotFoundException)
            {
                throw new Exception("Submission failed. Try again.");
            }

            return(dc);
        }