public static void DeleteUserRole(string UserCode, string RoleCode) { try { EntityData entity = SystemManageDAO.GetUserRoleByCode(UserCode, RoleCode); if (entity.HasRecord()) { SystemManageDAO.DeleteUserRole(entity); } entity.Dispose(); } catch (Exception exception) { throw exception; } }