Example #1
0
 public static void UpdateLink(Link link)
 {            
     try
     {
         LinkDAO linkDAO = new LinkDAO();
         linkDAO.UpdateLink(link);
     }
     catch (ApplicationException)
     {
         throw;
     }
     catch (Exception ex)
     {
         // log this exception
         log4net.Util.LogLog.Error(ex.Message, ex);
         // wrap it and rethrow
         throw new ApplicationException(SR.BusinessUpdateLinkException, ex);
     }
 }        
Example #2
0
 public static Link GetLink(int linkId)
 {            
     try
     {
         LinkDAO linkDAO = new LinkDAO();
         return linkDAO.GetLink(linkId);                
     }
     catch (ApplicationException)
     {
         throw;
     }
     catch (Exception ex)
     {
         // log this exception
         log4net.Util.LogLog.Error(ex.Message, ex);
         // wrap it and rethrow
         throw new ApplicationException(SR.BusinessGetLinkException, ex);
     }
 }                
Example #3
0
 public static LinkCollection GetLinkList(LinkColumns orderBy, string orderDirection)
 {            
     try
     {
         LinkDAO linkDAO = new LinkDAO();
         return linkDAO.GetLinkList(orderBy, orderDirection);
     }
     catch (ApplicationException)
     {
         throw;
     }
     catch (Exception ex)
     {
         // log this exception
         log4net.Util.LogLog.Error(ex.Message, ex);
         // wrap it and rethrow
         throw new ApplicationException(SR.BusinessGetLinkListException, ex);
     }
 }        
Example #4
0
 public static LinkCollection GetLinkListBySourceId(Int32 sourceId, LinkColumns orderBy, string orderDirection, int page, int pageSize, out int totalRecords)
 {
     try
     {
         LinkDAO linkDAO = new LinkDAO();
         return linkDAO.GetLinkListBySourceId(sourceId, orderBy, orderDirection, page, pageSize, out totalRecords);
     }
     catch (ApplicationException)
     {
         throw;
     }
     catch (Exception ex)
     {
         // log this exception
         log4net.Util.LogLog.Error(ex.Message, ex);
         // wrap it and rethrow
         throw new ApplicationException(SR.BusinessGetLinkListException, ex);
     }
 }