Beispiel #1
0
 /// <summary>Gets the list of all role privileges.</summary>
 /// <param name="roleId">The RoleID Object.</param>
 /// <returns>List of SecurityRole.</returns>
 public List <SecurityRole> GetAllRolePrivileges(RoleID roleId)
 {
     Logging.LogDebugMessage("Method: GetAllRolePrivileges, MethodType: Post, Layer: SecurityBL, Parameters: roleId = " + JsonConvert.SerializeObject(roleId));
     using (SecurityDAL rolePrivileges = new SecurityDAL())
     {
         try
         {
             return(rolePrivileges.GetAllRolePrivileges(roleId));
         }
         catch (SqlException sqlEx)
         {
             Logging.LogErrorMessage("Method: GetAllRolePrivileges, Layer: SecurityBL, Stack Trace: " + sqlEx.ToString());
             throw;
         }
         catch (Exception ex)
         {
             Logging.LogErrorMessage("Method: GetAllRolePrivileges, Layer: SecurityBL, Stack Trace: " + ex.ToString());
             throw;
         }
     }
 }