Beispiel #1
0
 /// <summary>Gets list of all pages.</summary>
 /// <returns>List of AdminPages.</returns>
 public List <Page> GetAllPages()
 {
     Logging.LogDebugMessage("Method: GetAllPages, MethodType: Get, Layer: SecurityBL, Parameters: No Input Parameters");
     using (SecurityDAL allPages = new SecurityDAL())
     {
         try
         {
             return(allPages.GetAllPages());
         }
         catch (SqlException sqlEx)
         {
             Logging.LogErrorMessage("Method: GetAllPages, Layer: SecurityBL, Stack Trace: " + sqlEx.ToString());
             throw;
         }
         catch (Exception ex)
         {
             Logging.LogErrorMessage("Method: GetAllPages, Layer: SecurityBL, Stack Trace: " + ex.ToString());
             throw;
         }
     }
 }