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