Ejemplo n.º 1
0
 public static bool UserInRole(int usuarioId, string normalizedRoleName, Connection conn, MySqlTransaction transaction = null)
 {
     using (var dao = new UserRoleDAO(conn))
     {
         return(dao.UserInRole(usuarioId, normalizedRoleName, transaction));
     }
 }
Ejemplo n.º 2
0
 public static bool UserInRole(int usuarioId, int roleId, Connection conn, MySqlTransaction transaction = null)
 {
     using (var dao = new UserRoleDAO(conn))
     {
         return(dao.UserInRole(usuarioId, roleId, transaction));
     }
 }