public IEnumerable <WorkShop> GetReservableWorkshop(Guid congressId)
 {
     try
     {
         var workShopBo = new WorkShopBO();
         var lst        = workShopBo.Where(this.ConnectionHandler, x => x.CongressId == congressId);
         new WorkShopBO().SetCapacity(ConnectionHandler, lst, congressId);
         var list = new List <WorkShop>();
         foreach (var workShop in lst)
         {
             if (string.IsNullOrEmpty(workShop.Subject))
             {
                 continue;
             }
             if (workShop.FreeCapicity > 0)
             {
                 list.Add(workShop);
             }
         }
         return(list);
     }
     catch (KnownException ex)
     {
         Log.Save(ex.Message, LogType.ApplicationError, ex.Source, ex.StackTrace);
         throw new KnownException(ex.Message, ex);
     }
     catch (Exception ex)
     {
         Log.Save(ex.Message, LogType.ApplicationError, ex.Source, ex.StackTrace);
         throw new KnownException(ex.Message, ex);
     }
 }
        public List <WorkShop> GetByCongressId(Guid congressId)
        {
            try
            {
                var workShopBo = new WorkShopBO();
                var lst        = workShopBo.Where(this.ConnectionHandler, x => x.CongressId == congressId);
                new WorkShopBO().SetCapacity(ConnectionHandler, lst, congressId);

                return(lst);
            }
            catch (KnownException ex)
            {
                Log.Save(ex.Message, LogType.ApplicationError, ex.Source, ex.StackTrace);
                throw new KnownException(ex.Message, ex);
            }
            catch (Exception ex)
            {
                Log.Save(ex.Message, LogType.ApplicationError, ex.Source, ex.StackTrace);
                throw new KnownException(ex.Message, ex);
            }
        }