Exemplo n.º 1
0
 public void AddHostingUnit(HostingUnit hostingUnit)//Adds new Hosting unit;
 {
     if (checkID(hostingUnit.Owner.ID))
     {
         try
         {
             dal.AddHostingUnit(hostingUnit.Clone());
         }
         catch (DuplicateWaitObjectException e)
         {
             throw e;
         }
     }
     else
     {
         throw new KeyNotFoundException("Owner ID  is not valid\n");
     }
 }