Beispiel #1
0
 /// <summary>Gets the List of all user roles by roleId.</summary>
 /// <param name="userid">The Int64 Object.</param>
 /// <returns>List of UserRoles.</returns>
 public List <UserRoles> GetAllUserRoles(Int64 userid)
 {
     Logging.LogDebugMessage("Method: GetAllUserRoles, MethodType: Get, Layer: SecurityBL, Parameters: userid = " + userid.ToString());
     using (SecurityDAL allUserRoles = new SecurityDAL())
     {
         try
         {
             return(allUserRoles.GetAllUserRoles(userid));
         }
         catch (SqlException sqlEx)
         {
             Logging.LogErrorMessage("Method: GetAllUserRoles, Layer: SecurityBL, Stack Trace: " + sqlEx.ToString());
             throw;
         }
         catch (Exception ex)
         {
             Logging.LogErrorMessage("Method: GetAllUserRoles, Layer: SecurityBL, Stack Trace: " + ex.ToString());
             throw;
         }
     }
 }